Lines Matching refs:exts
198 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net, in tcf_exts_init() argument
202 exts->type = 0; in tcf_exts_init()
203 exts->nr_actions = 0; in tcf_exts_init()
204 exts->net = net; in tcf_exts_init()
205 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), in tcf_exts_init()
207 if (!exts->actions) in tcf_exts_init()
210 exts->action = action; in tcf_exts_init()
211 exts->police = police; in tcf_exts_init()
219 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
222 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
223 return exts->net != NULL; in tcf_exts_get_net()
229 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument
232 if (exts->net) in tcf_exts_put_net()
233 put_net(exts->net); in tcf_exts_put_net()
238 #define tcf_exts_for_each_action(i, a, exts) \ argument
239 for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
241 #define tcf_exts_for_each_action(i, a, exts) \ argument
242 for (; 0; (void)(i), (void)(a), (void)(exts))
246 tcf_exts_stats_update(const struct tcf_exts *exts, in tcf_exts_stats_update() argument
254 for (i = 0; i < exts->nr_actions; i++) { in tcf_exts_stats_update()
255 struct tc_action *a = exts->actions[i]; in tcf_exts_stats_update()
270 static inline bool tcf_exts_has_actions(struct tcf_exts *exts) in tcf_exts_has_actions() argument
273 return exts->nr_actions; in tcf_exts_has_actions()
291 tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, in tcf_exts_exec() argument
295 return tcf_action_exec(skb, exts->actions, exts->nr_actions, res); in tcf_exts_exec()
302 struct tcf_exts *exts, bool ovr, bool rtnl_held,
304 void tcf_exts_destroy(struct tcf_exts *exts);
306 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts);
307 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts);
507 const struct tcf_exts *exts, bool rtnl_held);
527 unsigned int tcf_exts_num_actions(struct tcf_exts *exts);
530 struct tcf_exts *exts; member
658 struct tcf_exts *exts; member