Lines Matching refs:exts

240 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net,  in tcf_exts_init()  argument
244 exts->type = 0; in tcf_exts_init()
245 exts->nr_actions = 0; in tcf_exts_init()
249 exts->net = net; in tcf_exts_init()
250 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), in tcf_exts_init()
252 if (!exts->actions) in tcf_exts_init()
255 exts->action = action; in tcf_exts_init()
256 exts->police = police; in tcf_exts_init()
264 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
267 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
268 if (exts->net) in tcf_exts_get_net()
269 netns_tracker_alloc(exts->net, &exts->ns_tracker, GFP_KERNEL); in tcf_exts_get_net()
270 return exts->net != NULL; in tcf_exts_get_net()
276 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument
279 if (exts->net) in tcf_exts_put_net()
280 put_net_track(exts->net, &exts->ns_tracker); in tcf_exts_put_net()
285 #define tcf_exts_for_each_action(i, a, exts) \ argument
286 for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
288 #define tcf_exts_for_each_action(i, a, exts) \ argument
289 for (; 0; (void)(i), (void)(a), (void)(exts))
296 tcf_exts_hw_stats_update(const struct tcf_exts *exts, in tcf_exts_hw_stats_update() argument
303 for (i = 0; i < exts->nr_actions; i++) { in tcf_exts_hw_stats_update()
304 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()
358 struct tcf_exts *exts, u32 flags,
361 struct nlattr *rate_tlv, struct tcf_exts *exts,
363 void tcf_exts_destroy(struct tcf_exts *exts);
365 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts);
366 int tcf_exts_terse_dump(struct sk_buff *skb, struct tcf_exts *exts);
367 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts);
575 const struct tcf_exts *exts,
599 unsigned int tcf_exts_num_actions(struct tcf_exts *exts);
645 struct tcf_exts *exts; member
784 struct tcf_exts *exts; member