Lines Matching defs:bind
125 static int __tcf_action_put(struct tc_action *p, bool bind)
130 if (bind)
139 if (bind)
145 static int __tcf_idr_release(struct tc_action *p, bool bind, bool strict)
149 /* Release with strict==1 and bind==0 is only called through act API
150 * interface (classifiers always bind). Only case when action with
151 * positive reference count and zero bind count can exist is when it was
153 * action if it was created by classifier). So only case when bind count
162 if (!bind && strict && atomic_read(&p->tcfa_bindcnt) > 0)
165 if (__tcf_action_put(p, bind))
172 int tcf_idr_release(struct tc_action *a, bool bind)
177 ret = __tcf_idr_release(a, bind, false);
428 int bind, bool cpustats, u32 flags)
437 if (bind)
484 const struct tc_action_ops *ops, int bind,
488 return tcf_idr_create(tn, index, est, a, ops, bind,
507 * its reference and bind counters, and return 1. Otherwise insert temporary
513 struct tc_action **a, int bind)
533 if (bind)
736 int tcf_action_destroy(struct tc_action *actions[], int bind)
746 ret = __tcf_idr_release(a, bind, true);
778 tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
780 return a->ops->dump(skb, a, bind, ref);
812 tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
839 err = tcf_action_dump_old(skb, a, bind, ref);
852 int bind, int ref, bool terse)
864 tcf_action_dump_1(skb, a, bind, ref);
1002 char *name, int ovr, int bind,
1032 err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, ovr, bind,
1035 err = a_o->init(net, nla, est, &a, ovr, bind, rtnl_held,
1061 struct nlattr *est, char *name, int ovr, int bind,
1089 act = tcf_action_init_1(net, tp, tb[i], est, name, ovr, bind,
1111 tcf_action_destroy(actions, bind);
1188 u32 portid, u32 seq, u16 flags, int event, int bind,
1208 if (tcf_action_dump(skb, actions, bind, ref, false) < 0)