Lines Matching refs:exts
62 int tcf_exts_init_ex(struct tcf_exts *exts, struct net *net, int action,
243 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net, in tcf_exts_init() argument
247 return tcf_exts_init_ex(exts, net, action, police, NULL, 0, false); in tcf_exts_init()
257 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
260 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
261 if (exts->net) in tcf_exts_get_net()
262 netns_tracker_alloc(exts->net, &exts->ns_tracker, GFP_KERNEL); in tcf_exts_get_net()
263 return exts->net != NULL; in tcf_exts_get_net()
269 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument
272 if (exts->net) in tcf_exts_put_net()
273 put_net_track(exts->net, &exts->ns_tracker); in tcf_exts_put_net()
278 #define tcf_exts_for_each_action(i, a, exts) \ argument
279 for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
281 #define tcf_exts_for_each_action(i, a, exts) \ argument
282 for (; 0; (void)(i), (void)(a), (void)(exts))
294 tcf_exts_hw_stats_update(const struct tcf_exts *exts, in tcf_exts_hw_stats_update() argument
301 for (i = 0; i < exts->nr_actions; i++) { in tcf_exts_hw_stats_update()
302 struct tc_action *a = exts->actions[i]; in tcf_exts_hw_stats_update()
326 static inline bool tcf_exts_has_actions(struct tcf_exts *exts) in tcf_exts_has_actions() argument
329 return exts->nr_actions; in tcf_exts_has_actions()
347 tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, in tcf_exts_exec() argument
351 return tcf_action_exec(skb, exts->actions, exts->nr_actions, res); in tcf_exts_exec()
357 tcf_exts_exec_ex(struct sk_buff *skb, struct tcf_exts *exts, int act_index, in tcf_exts_exec_ex() argument
361 return tcf_action_exec(skb, exts->actions + act_index, in tcf_exts_exec_ex()
362 exts->nr_actions - act_index, res); in tcf_exts_exec_ex()
370 struct tcf_exts *exts, u32 flags,
373 struct nlattr *rate_tlv, struct tcf_exts *exts,
375 void tcf_exts_destroy(struct tcf_exts *exts);
377 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts);
378 int tcf_exts_terse_dump(struct sk_buff *skb, struct tcf_exts *exts);
379 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts);
587 const struct tcf_exts *exts,
612 unsigned int tcf_exts_num_actions(struct tcf_exts *exts);
658 struct tcf_exts *exts; member
798 struct tcf_exts *exts; member