Lines Matching refs:actions

252 	struct tc_action *actions[TCA_ACT_MAX_PRIO] = {  in tcf_action_offload_add_ex()  local
271 err = tc_setup_action(&fl_action->action, actions, 0, extack); in tcf_action_offload_add_ex()
1124 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions, in tcf_action_exec() argument
1137 const struct tc_action *a = actions[i]; in tcf_action_exec()
1187 int tcf_action_destroy(struct tc_action *actions[], int bind) in tcf_action_destroy() argument
1193 tcf_act_for_each_action(i, a, actions) { in tcf_action_destroy()
1194 actions[i] = NULL; in tcf_action_destroy()
1210 static void tcf_action_put_many(struct tc_action *actions[]) in tcf_action_put_many() argument
1215 tcf_act_for_each_action(i, a, actions) { in tcf_action_put_many()
1222 static void tca_put_bound_many(struct tc_action *actions[], int init_res[]) in tca_put_bound_many() argument
1227 tcf_act_for_each_action(i, a, actions) { in tca_put_bound_many()
1244 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], in tcf_action_dump() argument
1251 tcf_act_for_each_action(i, a, actions) { in tcf_action_dump()
1313 void tcf_idr_insert_many(struct tc_action *actions[], int init_res[]) in tcf_idr_insert_many() argument
1318 tcf_act_for_each_action(i, a, actions) { in tcf_idr_insert_many()
1465 struct nlattr *est, struct tc_action *actions[], in tcf_action_init() argument
1514 actions[i - 1] = act; in tcf_action_init()
1559 tcf_idr_insert_many(actions, init_res); in tcf_action_init()
1566 tcf_action_destroy(actions, flags & TCA_ACT_FLAGS_BIND); in tcf_action_init()
1641 static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[], in tca_get_fill() argument
1666 if (tcf_action_dump(skb, actions, bind, ref, false) < 0) in tca_get_fill()
1682 struct tc_action *actions[], int event, in tcf_get_notify() argument
1690 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1820 static int tcf_action_delete(struct net *net, struct tc_action *actions[]) in tcf_action_delete() argument
1825 tcf_act_for_each_action(i, a, actions) { in tcf_action_delete()
1833 actions[i] = NULL; in tcf_action_delete()
1853 struct tc_action *actions[TCA_ACT_MAX_PRIO] = { in tcf_reoffload_del_notify_msg() local
1862 if (tca_get_fill(skb, actions, 0, 0, 0, RTM_DELACTION, 0, 1, NULL) <= 0) { in tcf_reoffload_del_notify_msg()
1954 struct tc_action *actions[], in tcf_del_notify_msg() argument
1964 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify_msg()
1975 struct tc_action *actions[], u32 portid, in tcf_del_notify() argument
1984 skb = tcf_del_notify_msg(net, n, actions, portid, attr_size, in tcf_del_notify()
1991 ret = tcf_action_delete(net, actions); in tcf_del_notify()
2010 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tca_action_gd() local
2032 actions[i - 1] = act; in tca_action_gd()
2038 ret = tcf_get_notify(net, portid, n, actions, event, extack); in tca_action_gd()
2040 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
2046 tcf_action_put_many(actions); in tca_action_gd()
2051 struct tc_action *actions[], in tcf_add_notify_msg() argument
2061 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify_msg()
2072 struct tc_action *actions[], u32 portid, in tcf_add_notify() argument
2080 skb = tcf_add_notify_msg(net, n, actions, portid, attr_size, in tcf_add_notify()
2096 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {}; in tcf_action_add() local
2100 ret = tcf_action_init(net, NULL, nla, NULL, actions, init_res, in tcf_action_add()
2109 ret = tcf_add_notify(net, n, actions, portid, attr_size, extack); in tcf_action_add()
2112 tca_put_bound_many(actions, init_res); in tcf_action_add()