Lines Matching refs:exts

2999 void tcf_exts_destroy(struct tcf_exts *exts)  in tcf_exts_destroy()  argument
3002 if (exts->actions) { in tcf_exts_destroy()
3003 tcf_action_destroy(exts->actions, TCA_ACT_UNBIND); in tcf_exts_destroy()
3004 kfree(exts->actions); in tcf_exts_destroy()
3006 exts->nr_actions = 0; in tcf_exts_destroy()
3012 struct nlattr *rate_tlv, struct tcf_exts *exts, bool ovr, in tcf_exts_validate() argument
3020 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
3021 act = tcf_action_init_1(net, tp, tb[exts->police], in tcf_exts_validate()
3028 act->type = exts->type = TCA_OLD_COMPAT; in tcf_exts_validate()
3029 exts->actions[0] = act; in tcf_exts_validate()
3030 exts->nr_actions = 1; in tcf_exts_validate()
3031 } else if (exts->action && tb[exts->action]) { in tcf_exts_validate()
3034 err = tcf_action_init(net, tp, tb[exts->action], in tcf_exts_validate()
3036 exts->actions, &attr_size, in tcf_exts_validate()
3040 exts->nr_actions = err; in tcf_exts_validate()
3044 if ((exts->action && tb[exts->action]) || in tcf_exts_validate()
3045 (exts->police && tb[exts->police])) { in tcf_exts_validate()
3067 static struct tc_action *tcf_exts_first_act(struct tcf_exts *exts) in tcf_exts_first_act() argument
3069 if (exts->nr_actions == 0) in tcf_exts_first_act()
3072 return exts->actions[0]; in tcf_exts_first_act()
3076 int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts) in tcf_exts_dump() argument
3081 if (exts->action && tcf_exts_has_actions(exts)) { in tcf_exts_dump()
3087 if (exts->type != TCA_OLD_COMPAT) { in tcf_exts_dump()
3088 nest = nla_nest_start_noflag(skb, exts->action); in tcf_exts_dump()
3092 if (tcf_action_dump(skb, exts->actions, 0, 0) < 0) in tcf_exts_dump()
3095 } else if (exts->police) { in tcf_exts_dump()
3096 struct tc_action *act = tcf_exts_first_act(exts); in tcf_exts_dump()
3097 nest = nla_nest_start_noflag(skb, exts->police); in tcf_exts_dump()
3117 int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts) in tcf_exts_dump_stats() argument
3120 struct tc_action *a = tcf_exts_first_act(exts); in tcf_exts_dump_stats()
3438 const struct tcf_exts *exts, bool rtnl_held) in tc_setup_flow_action() argument
3443 if (!exts) in tc_setup_flow_action()
3450 tcf_exts_for_each_action(i, act, exts) { in tc_setup_flow_action()
3590 unsigned int tcf_exts_num_actions(struct tcf_exts *exts) in tcf_exts_num_actions() argument
3596 tcf_exts_for_each_action(i, act, exts) { in tcf_exts_num_actions()