Lines Matching refs:exts

214 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net,  in tcf_exts_init()  argument
218 exts->type = 0; in tcf_exts_init()
219 exts->nr_actions = 0; in tcf_exts_init()
220 exts->net = net; in tcf_exts_init()
221 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), in tcf_exts_init()
223 if (!exts->actions) in tcf_exts_init()
226 exts->action = action; in tcf_exts_init()
227 exts->police = police; in tcf_exts_init()
235 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
238 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
239 return exts->net != NULL; in tcf_exts_get_net()
245 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument
248 if (exts->net) in tcf_exts_put_net()
249 put_net(exts->net); in tcf_exts_put_net()
254 #define tcf_exts_for_each_action(i, a, exts) \ argument
255 for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
257 #define tcf_exts_for_each_action(i, a, exts) \ argument
258 for (; 0; (void)(i), (void)(a), (void)(exts))
262 tcf_exts_stats_update(const struct tcf_exts *exts, in tcf_exts_stats_update() argument
271 for (i = 0; i < exts->nr_actions; i++) { in tcf_exts_stats_update()
272 struct tc_action *a = exts->actions[i]; in tcf_exts_stats_update()
290 static inline bool tcf_exts_has_actions(struct tcf_exts *exts) in tcf_exts_has_actions() argument
293 return exts->nr_actions; in tcf_exts_has_actions()
311 tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, in tcf_exts_exec() argument
315 return tcf_action_exec(skb, exts->actions, exts->nr_actions, res); in tcf_exts_exec()
322 struct tcf_exts *exts, u32 flags,
324 void tcf_exts_destroy(struct tcf_exts *exts);
326 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts);
327 int tcf_exts_terse_dump(struct sk_buff *skb, struct tcf_exts *exts);
328 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts);
536 const struct tcf_exts *exts);
556 unsigned int tcf_exts_num_actions(struct tcf_exts *exts);
602 struct tcf_exts *exts; member
741 struct tcf_exts *exts; member