Lines Matching refs:actions

717 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions,  in tcf_action_exec()  argument
730 const struct tc_action *a = actions[i]; in tcf_action_exec()
769 int tcf_action_destroy(struct tc_action *actions[], int bind) in tcf_action_destroy() argument
775 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_destroy()
776 a = actions[i]; in tcf_action_destroy()
777 actions[i] = NULL; in tcf_action_destroy()
794 static void tcf_action_put_many(struct tc_action *actions[]) in tcf_action_put_many() argument
799 struct tc_action *a = actions[i]; in tcf_action_put_many()
856 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], in tcf_action_dump() argument
863 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_dump()
864 a = actions[i]; in tcf_action_dump()
924 void tcf_idr_insert_many(struct tc_action *actions[]) in tcf_idr_insert_many() argument
929 struct tc_action *a = actions[i]; in tcf_idr_insert_many()
1065 struct nlattr *est, struct tc_action *actions[], in tcf_action_init() argument
1103 actions[i - 1] = act; in tcf_action_init()
1109 tcf_idr_insert_many(actions); in tcf_action_init()
1116 tcf_action_destroy(actions, flags & TCA_ACT_FLAGS_BIND); in tcf_action_init()
1192 static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[], in tca_get_fill() argument
1213 if (tcf_action_dump(skb, actions, bind, ref, false) < 0) in tca_get_fill()
1228 struct tc_action *actions[], int event, in tcf_get_notify() argument
1236 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1366 static int tcf_action_delete(struct net *net, struct tc_action *actions[]) in tcf_action_delete() argument
1370 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_delete()
1371 struct tc_action *a = actions[i]; in tcf_action_delete()
1379 actions[i] = NULL; in tcf_action_delete()
1396 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_del_notify() argument
1407 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify()
1415 ret = tcf_action_delete(net, actions); in tcf_del_notify()
1435 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tca_action_gd() local
1457 actions[i - 1] = act; in tca_action_gd()
1463 ret = tcf_get_notify(net, portid, n, actions, event, extack); in tca_action_gd()
1465 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
1471 tcf_action_put_many(actions); in tca_action_gd()
1476 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_add_notify() argument
1486 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify()
1503 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tcf_action_add() local
1507 ret = tcf_action_init(net, NULL, nla, NULL, actions, init_res, in tcf_action_add()
1515 ret = tcf_add_notify(net, n, actions, portid, attr_size, extack); in tcf_action_add()
1520 actions[i] = NULL; in tcf_action_add()
1521 tcf_action_put_many(actions); in tcf_action_add()