Lines Matching refs:exts
263 static inline int tcf_exts_init(struct tcf_exts *exts, int action, int police) in tcf_exts_init() argument
266 exts->type = 0; in tcf_exts_init()
267 exts->nr_actions = 0; in tcf_exts_init()
268 exts->net = NULL; in tcf_exts_init()
269 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), in tcf_exts_init()
271 if (!exts->actions) in tcf_exts_init()
274 exts->action = action; in tcf_exts_init()
275 exts->police = police; in tcf_exts_init()
283 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
286 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
287 return exts->net != NULL; in tcf_exts_get_net()
293 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument
296 if (exts->net) in tcf_exts_put_net()
297 put_net(exts->net); in tcf_exts_put_net()
302 #define tcf_exts_for_each_action(i, a, exts) \ argument
303 for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
305 #define tcf_exts_for_each_action(i, a, exts) \ argument
306 for (; 0; (void)(i), (void)(a), (void)(exts))
310 tcf_exts_stats_update(const struct tcf_exts *exts, in tcf_exts_stats_update() argument
318 for (i = 0; i < exts->nr_actions; i++) { in tcf_exts_stats_update()
319 struct tc_action *a = exts->actions[i]; in tcf_exts_stats_update()
334 static inline bool tcf_exts_has_actions(struct tcf_exts *exts) in tcf_exts_has_actions() argument
337 return exts->nr_actions; in tcf_exts_has_actions()
349 static inline bool tcf_exts_has_one_action(struct tcf_exts *exts) in tcf_exts_has_one_action() argument
352 return exts->nr_actions == 1; in tcf_exts_has_one_action()
358 static inline struct tc_action *tcf_exts_first_action(struct tcf_exts *exts) in tcf_exts_first_action() argument
361 return exts->actions[0]; in tcf_exts_first_action()
379 tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, in tcf_exts_exec() argument
383 return tcf_action_exec(skb, exts->actions, exts->nr_actions, res); in tcf_exts_exec()
390 struct tcf_exts *exts, bool ovr,
392 void tcf_exts_destroy(struct tcf_exts *exts);
394 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts);
395 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts);
598 int tc_setup_cb_call(struct tcf_block *block, struct tcf_exts *exts,
621 struct tcf_exts *exts; member
741 struct tcf_exts *exts; member
753 struct tcf_exts *exts; member
765 struct tcf_exts *exts; member