Lines Matching refs:tc_action
24 struct tc_action { struct
113 int (*act)(struct sk_buff *, const struct tc_action *,
115 int (*dump)(struct sk_buff *, struct tc_action *, int, int);
116 void (*cleanup)(struct tc_action *);
117 int (*lookup)(struct net *net, struct tc_action **a, u32 index);
119 struct nlattr *est, struct tc_action **act,
126 void (*stats_update)(struct tc_action *, u64, u64, u64, u64, bool);
127 size_t (*get_fill_size)(const struct tc_action *act);
128 struct net_device *(*get_dev)(const struct tc_action *a,
131 (*get_psample_group)(const struct tc_action *a,
133 int (*offload_act_setup)(struct tc_action *act, void *entry_data,
186 int tcf_idr_search(struct tc_action_net *tn, struct tc_action **a, u32 index);
188 struct tc_action **a, const struct tc_action_ops *ops,
191 struct nlattr *est, struct tc_action **a,
194 void tcf_idr_insert_many(struct tc_action *actions[]);
197 struct tc_action **a, int bind);
198 int tcf_idr_release(struct tc_action *a, bool bind);
203 int tcf_action_destroy(struct tc_action *actions[], int bind);
204 int tcf_action_exec(struct sk_buff *skb, struct tc_action **actions,
208 struct tc_action *actions[], int init_res[], size_t *attr_size,
213 struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
217 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], int bind,
219 int tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int, int);
220 int tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int, int);
222 static inline void tcf_action_update_bstats(struct tc_action *a, in tcf_action_update_bstats()
234 static inline void tcf_action_inc_drop_qstats(struct tc_action *a) in tcf_action_inc_drop_qstats()
245 static inline void tcf_action_inc_overlimit_qstats(struct tc_action *a) in tcf_action_inc_overlimit_qstats()
256 void tcf_action_update_stats(struct tc_action *a, u64 bytes, u64 packets,
258 int tcf_action_copy_stats(struct sk_buff *, struct tc_action *, int);
260 int tcf_action_update_hw_stats(struct tc_action *action);
266 struct tcf_chain *tcf_action_set_ctrlact(struct tc_action *a, int action,
284 static inline void tcf_action_stats_update(struct tc_action *a, u64 bytes, in tcf_action_stats_update()