Lines Matching refs:tc_action
44 static void tcf_action_goto_chain_exec(const struct tc_action *a,
106 struct tcf_chain *tcf_action_set_ctrlact(struct tc_action *a, int action,
120 static void free_tcf(struct tc_action *p)
135 static void offload_action_hw_count_set(struct tc_action *act,
141 static void offload_action_hw_count_inc(struct tc_action *act,
147 static void offload_action_hw_count_dec(struct tc_action *act,
154 static unsigned int tcf_offload_act_num_actions_single(struct tc_action *act)
181 struct tc_action *act,
246 static int tcf_action_offload_add_ex(struct tc_action *action,
252 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {
295 static int tcf_action_offload_add(struct tc_action *action,
301 int tcf_action_update_hw_stats(struct tc_action *action)
329 static int tcf_action_offload_del_ex(struct tc_action *action,
358 static int tcf_action_offload_del(struct tc_action *action)
363 static void tcf_action_cleanup(struct tc_action *p)
373 static int __tcf_action_put(struct tc_action *p, bool bind)
393 static int __tcf_idr_release(struct tc_action *p, bool bind, bool strict)
420 int tcf_idr_release(struct tc_action *a, bool bind)
432 static size_t tcf_action_shared_attrs_size(const struct tc_action *act)
468 static size_t tcf_action_fill_size(const struct tc_action *act)
478 tcf_action_dump_terse(struct sk_buff *skb, struct tc_action *a, bool from_act)
515 struct tc_action *p;
572 static int tcf_idr_release_unsafe(struct tc_action *p)
594 struct tc_action *p;
654 int tcf_idr_search(struct tc_action_net *tn, struct tc_action **a, u32 index)
657 struct tc_action *p;
690 struct tc_action **a, u32 index)
702 struct tc_action *p;
734 struct tc_action **a, const struct tc_action_ops *ops,
737 struct tc_action *p = kzalloc(ops->size, GFP_KERNEL);
792 struct nlattr *est, struct tc_action **a,
822 struct tc_action **a, int bind)
825 struct tc_action *p;
872 struct tc_action *p;
1053 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions,
1066 const struct tc_action *a = actions[i];
1115 int tcf_action_destroy(struct tc_action *actions[], int bind)
1118 struct tc_action *a;
1134 static int tcf_action_put(struct tc_action *p)
1140 static void tcf_action_put_many(struct tc_action *actions[])
1145 struct tc_action *a = actions[i];
1157 tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
1163 tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
1207 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[],
1210 struct tc_action *a;
1277 void tcf_idr_insert_many(struct tc_action *actions[])
1282 struct tc_action *a = actions[i];
1358 struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
1368 struct tc_action *a;
1428 struct nlattr *est, struct tc_action *actions[],
1435 struct tc_action *act;
1507 void tcf_action_update_stats(struct tc_action *a, u64 bytes, u64 packets,
1528 int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *p,
1575 static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[],
1616 struct tc_action *actions[], int event,
1634 static struct tc_action *tcf_action_get_1(struct net *net, struct nlattr *nla,
1640 struct tc_action *a;
1754 static int tcf_action_delete(struct net *net, struct tc_action *actions[])
1759 struct tc_action *a = actions[i];
1784 tcf_reoffload_del_notify(struct net *net, struct tc_action *action)
1787 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {
1821 struct tc_action *p;
1874 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[],
1911 struct tc_action *act;
1913 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {};
1954 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[],
1981 struct tc_action *actions[TCA_ACT_MAX_PRIO] = {};