Lines Matching refs:actions

647 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions,  in tcf_action_exec()  argument
660 const struct tc_action *a = actions[i]; in tcf_action_exec()
699 int tcf_action_destroy(struct tc_action *actions[], int bind) in tcf_action_destroy() argument
705 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_destroy()
706 a = actions[i]; in tcf_action_destroy()
707 actions[i] = NULL; in tcf_action_destroy()
720 struct tc_action *actions[] = { a, NULL }; in tcf_action_destroy_1() local
722 return tcf_action_destroy(actions, bind); in tcf_action_destroy_1()
731 static void tcf_action_put_many(struct tc_action *actions[]) in tcf_action_put_many() argument
736 struct tc_action *a = actions[i]; in tcf_action_put_many()
791 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], in tcf_action_dump() argument
798 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_dump()
799 a = actions[i]; in tcf_action_dump()
957 struct tc_action *actions[], size_t *attr_size, in tcf_action_init() argument
981 actions[i - 1] = act; in tcf_action_init()
988 tcf_action_destroy(actions, bind); in tcf_action_init()
1038 static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[], in tca_get_fill() argument
1059 if (tcf_action_dump(skb, actions, bind, ref) < 0) in tca_get_fill()
1074 struct tc_action *actions[], int event, in tcf_get_notify() argument
1082 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1214 static int tcf_action_delete(struct net *net, struct tc_action *actions[]) in tcf_action_delete() argument
1218 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_delete()
1219 struct tc_action *a = actions[i]; in tcf_action_delete()
1227 actions[i] = NULL; in tcf_action_delete()
1244 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_del_notify() argument
1255 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify()
1263 ret = tcf_action_delete(net, actions); in tcf_del_notify()
1285 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tca_action_gd() local
1307 actions[i - 1] = act; in tca_action_gd()
1313 ret = tcf_get_notify(net, portid, n, actions, event, extack); in tca_action_gd()
1315 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
1321 tcf_action_put_many(actions); in tca_action_gd()
1326 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_add_notify() argument
1337 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify()
1357 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tcf_action_add() local
1361 actions, &attr_size, true, extack); in tcf_action_add()
1368 ret = tcf_add_notify(net, n, actions, portid, attr_size, extack); in tcf_action_add()
1370 tcf_action_put_many(actions); in tcf_action_add()