Lines Matching refs:actions
656 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions, in tcf_action_exec() argument
669 const struct tc_action *a = actions[i]; in tcf_action_exec()
708 int tcf_action_destroy(struct tc_action *actions[], int bind) in tcf_action_destroy() argument
714 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_destroy()
715 a = actions[i]; in tcf_action_destroy()
716 actions[i] = NULL; in tcf_action_destroy()
733 static void tcf_action_put_many(struct tc_action *actions[]) in tcf_action_put_many() argument
738 struct tc_action *a = actions[i]; in tcf_action_put_many()
823 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], in tcf_action_dump() argument
830 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_dump()
831 a = actions[i]; in tcf_action_dump()
891 static void tcf_idr_insert_many(struct tc_action *actions[]) in tcf_idr_insert_many() argument
896 struct tc_action *a = actions[i]; in tcf_idr_insert_many()
1028 struct tc_action *actions[], size_t *attr_size, in tcf_action_init() argument
1051 actions[i - 1] = act; in tcf_action_init()
1057 tcf_idr_insert_many(actions); in tcf_action_init()
1063 tcf_action_destroy(actions, bind); in tcf_action_init()
1134 static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[], in tca_get_fill() argument
1155 if (tcf_action_dump(skb, actions, bind, ref, false) < 0) in tca_get_fill()
1170 struct tc_action *actions[], int event, in tcf_get_notify() argument
1178 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1310 static int tcf_action_delete(struct net *net, struct tc_action *actions[]) in tcf_action_delete() argument
1314 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_delete()
1315 struct tc_action *a = actions[i]; in tcf_action_delete()
1323 actions[i] = NULL; in tcf_action_delete()
1340 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_del_notify() argument
1351 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify()
1359 ret = tcf_action_delete(net, actions); in tcf_del_notify()
1381 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tca_action_gd() local
1403 actions[i - 1] = act; in tca_action_gd()
1409 ret = tcf_get_notify(net, portid, n, actions, event, extack); in tca_action_gd()
1411 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
1417 tcf_action_put_many(actions); in tca_action_gd()
1422 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_add_notify() argument
1433 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify()
1453 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tcf_action_add() local
1457 actions, &attr_size, true, extack); in tcf_action_add()
1464 ret = tcf_add_notify(net, n, actions, portid, attr_size, extack); in tcf_action_add()
1466 tcf_action_put_many(actions); in tcf_action_add()