Lines Matching refs:exts
62 int tcf_exts_init_ex(struct tcf_exts *exts, struct net *net, int action,
230 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net, in tcf_exts_init() argument
234 return tcf_exts_init_ex(exts, net, action, police, NULL, 0, false); in tcf_exts_init()
244 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
247 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
248 if (exts->net) in tcf_exts_get_net()
249 netns_tracker_alloc(exts->net, &exts->ns_tracker, GFP_KERNEL); in tcf_exts_get_net()
250 return exts->net != NULL; in tcf_exts_get_net()
256 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument
259 if (exts->net) in tcf_exts_put_net()
260 put_net_track(exts->net, &exts->ns_tracker); in tcf_exts_put_net()
265 #define tcf_exts_for_each_action(i, a, exts) \ argument
266 for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
268 #define tcf_exts_for_each_action(i, a, exts) \ argument
269 for (; 0; (void)(i), (void)(a), (void)(exts))
281 tcf_exts_hw_stats_update(const struct tcf_exts *exts, in tcf_exts_hw_stats_update() argument
288 for (i = 0; i < exts->nr_actions; i++) { in tcf_exts_hw_stats_update()
289 struct tc_action *a = exts->actions[i]; in tcf_exts_hw_stats_update()
313 static inline bool tcf_exts_has_actions(struct tcf_exts *exts) in tcf_exts_has_actions() argument
316 return exts->nr_actions; in tcf_exts_has_actions()
334 tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, in tcf_exts_exec() argument
338 return tcf_action_exec(skb, exts->actions, exts->nr_actions, res); in tcf_exts_exec()
344 tcf_exts_exec_ex(struct sk_buff *skb, struct tcf_exts *exts, int act_index, in tcf_exts_exec_ex() argument
348 return tcf_action_exec(skb, exts->actions + act_index, in tcf_exts_exec_ex()
349 exts->nr_actions - act_index, res); in tcf_exts_exec_ex()
357 struct tcf_exts *exts, u32 flags,
360 struct nlattr *rate_tlv, struct tcf_exts *exts,
362 void tcf_exts_destroy(struct tcf_exts *exts);
364 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts);
365 int tcf_exts_terse_dump(struct sk_buff *skb, struct tcf_exts *exts);
366 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts);
574 const struct tcf_exts *exts,
599 unsigned int tcf_exts_num_actions(struct tcf_exts *exts);
645 struct tcf_exts *exts; member
785 struct tcf_exts *exts; member