Lines Matching refs:tp
35 struct tcf_proto *tp; member
40 static int basic_classify(struct sk_buff *skb, const struct tcf_proto *tp, in basic_classify() argument
44 struct basic_head *head = rcu_dereference_bh(tp->root); in basic_classify()
59 static unsigned long basic_get(struct tcf_proto *tp, u32 handle) in basic_get() argument
62 struct basic_head *head = rtnl_dereference(tp->root); in basic_get()
75 static int basic_init(struct tcf_proto *tp) in basic_init() argument
83 rcu_assign_pointer(tp->root, head); in basic_init()
96 static bool basic_destroy(struct tcf_proto *tp, bool force) in basic_destroy() argument
98 struct basic_head *head = rtnl_dereference(tp->root); in basic_destroy()
106 tcf_unbind_filter(tp, &f->res); in basic_destroy()
113 static int basic_delete(struct tcf_proto *tp, unsigned long arg) in basic_delete() argument
118 tcf_unbind_filter(tp, &f->res); in basic_delete()
128 static int basic_set_parms(struct net *net, struct tcf_proto *tp, in basic_set_parms() argument
138 err = tcf_exts_validate(net, tp, tb, est, &e, ovr); in basic_set_parms()
142 err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &t); in basic_set_parms()
148 tcf_bind_filter(tp, &f->res, base); in basic_set_parms()
151 tcf_exts_change(tp, &f->exts, &e); in basic_set_parms()
152 tcf_em_tree_change(tp, &f->ematches, &t); in basic_set_parms()
153 f->tp = tp; in basic_set_parms()
162 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument
166 struct basic_head *head = rtnl_dereference(tp->root); in basic_change()
199 } while (--i > 0 && basic_get(tp, head->hgenerator)); in basic_change()
209 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], ovr); in basic_change()
217 tcf_unbind_filter(tp, &fold->res); in basic_change()
229 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg) in basic_walk() argument
231 struct basic_head *head = rtnl_dereference(tp->root); in basic_walk()
238 if (arg->fn(tp, (unsigned long) f, arg) < 0) { in basic_walk()
247 static int basic_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in basic_dump() argument