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()
78 static int basic_init(struct tcf_proto *tp) in basic_init() argument
86 rcu_assign_pointer(tp->root, head); in basic_init()
99 static bool basic_destroy(struct tcf_proto *tp, bool force) in basic_destroy() argument
101 struct basic_head *head = rtnl_dereference(tp->root); in basic_destroy()
109 tcf_unbind_filter(tp, &f->res); in basic_destroy()
112 RCU_INIT_POINTER(tp->root, NULL); in basic_destroy()
117 static int basic_delete(struct tcf_proto *tp, unsigned long arg) in basic_delete() argument
122 tcf_unbind_filter(tp, &f->res); in basic_delete()
132 static int basic_set_parms(struct net *net, struct tcf_proto *tp, in basic_set_parms() argument
142 err = tcf_exts_validate(net, tp, tb, est, &e, ovr); in basic_set_parms()
146 err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &t); in basic_set_parms()
152 tcf_bind_filter(tp, &f->res, base); in basic_set_parms()
155 tcf_exts_change(tp, &f->exts, &e); in basic_set_parms()
156 tcf_em_tree_change(tp, &f->ematches, &t); in basic_set_parms()
157 f->tp = tp; in basic_set_parms()
166 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument
170 struct basic_head *head = rtnl_dereference(tp->root); in basic_change()
203 } while (--i > 0 && basic_get(tp, head->hgenerator)); in basic_change()
213 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], ovr); in basic_change()
221 tcf_unbind_filter(tp, &fold->res); in basic_change()
233 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg) in basic_walk() argument
235 struct basic_head *head = rtnl_dereference(tp->root); in basic_walk()
242 if (arg->fn(tp, (unsigned long) f, arg) < 0) { in basic_walk()
251 static int basic_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in basic_dump() argument