Lines Matching refs:actions
255 struct tc_action *actions[TCA_ACT_MAX_PRIO] = { in tcf_action_offload_add_ex() local
274 err = tc_setup_action(&fl_action->action, actions, extack); in tcf_action_offload_add_ex()
1057 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions, in tcf_action_exec() argument
1070 const struct tc_action *a = actions[i]; in tcf_action_exec()
1119 int tcf_action_destroy(struct tc_action *actions[], int bind) in tcf_action_destroy() argument
1125 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_destroy()
1126 a = actions[i]; in tcf_action_destroy()
1127 actions[i] = NULL; in tcf_action_destroy()
1144 static void tcf_action_put_many(struct tc_action *actions[]) in tcf_action_put_many() argument
1149 struct tc_action *a = actions[i]; in tcf_action_put_many()
1211 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], in tcf_action_dump() argument
1218 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_dump()
1219 a = actions[i]; in tcf_action_dump()
1281 void tcf_idr_insert_many(struct tc_action *actions[]) in tcf_idr_insert_many() argument
1286 struct tc_action *a = actions[i]; in tcf_idr_insert_many()
1432 struct nlattr *est, struct tc_action *actions[], in tcf_action_init() argument
1471 actions[i - 1] = act; in tcf_action_init()
1495 tcf_idr_insert_many(actions); in tcf_action_init()
1502 tcf_action_destroy(actions, flags & TCA_ACT_FLAGS_BIND); in tcf_action_init()
1582 static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[], in tca_get_fill() argument
1603 if (tcf_action_dump(skb, actions, bind, ref, false) < 0) in tca_get_fill()
1618 struct tc_action *actions[], int event, in tcf_get_notify() argument
1626 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1756 static int tcf_action_delete(struct net *net, struct tc_action *actions[]) in tcf_action_delete() argument
1760 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { in tcf_action_delete()
1761 struct tc_action *a = actions[i]; in tcf_action_delete()
1769 actions[i] = NULL; in tcf_action_delete()
1789 struct tc_action *actions[TCA_ACT_MAX_PRIO] = { in tcf_reoffload_del_notify() local
1801 if (tca_get_fill(skb, actions, 0, 0, 0, RTM_DELACTION, 0, 1) <= 0) { in tcf_reoffload_del_notify()
1876 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_del_notify() argument
1887 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify()
1895 ret = tcf_action_delete(net, actions); in tcf_del_notify()
1915 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tca_action_gd() local
1937 actions[i - 1] = act; in tca_action_gd()
1943 ret = tcf_get_notify(net, portid, n, actions, event, extack); in tca_action_gd()
1945 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
1951 tcf_action_put_many(actions); in tca_action_gd()
1956 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[], in tcf_add_notify() argument
1966 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify()
1983 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tcf_action_add() local
1987 ret = tcf_action_init(net, NULL, nla, NULL, actions, init_res, in tcf_action_add()
1995 ret = tcf_add_notify(net, n, actions, portid, attr_size, extack); in tcf_action_add()
2000 actions[i] = NULL; in tcf_action_add()
2001 tcf_action_put_many(actions); in tcf_action_add()