• Home
  • Raw
  • Download

Lines Matching refs:tp

48 	struct tcf_proto	*tp;  member
59 static int fw_classify(struct sk_buff *skb, const struct tcf_proto *tp, in fw_classify() argument
62 struct fw_head *head = rcu_dereference_bh(tp->root); in fw_classify()
88 !(TC_H_MAJ(id ^ tp->q->handle)))) { in fw_classify()
98 static unsigned long fw_get(struct tcf_proto *tp, u32 handle) in fw_get() argument
100 struct fw_head *head = rtnl_dereference(tp->root); in fw_get()
114 static int fw_init(struct tcf_proto *tp) in fw_init() argument
130 static bool fw_destroy(struct tcf_proto *tp, bool force) in fw_destroy() argument
132 struct fw_head *head = rtnl_dereference(tp->root); in fw_destroy()
149 tcf_unbind_filter(tp, &f->res); in fw_destroy()
153 RCU_INIT_POINTER(tp->root, NULL); in fw_destroy()
158 static int fw_delete(struct tcf_proto *tp, unsigned long arg) in fw_delete() argument
160 struct fw_head *head = rtnl_dereference(tp->root); in fw_delete()
174 tcf_unbind_filter(tp, &f->res); in fw_delete()
190 fw_change_attrs(struct net *net, struct tcf_proto *tp, struct fw_filter *f, in fw_change_attrs() argument
193 struct fw_head *head = rtnl_dereference(tp->root); in fw_change_attrs()
199 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr); in fw_change_attrs()
205 tcf_bind_filter(tp, &f->res, base); in fw_change_attrs()
228 tcf_exts_change(tp, &f->exts, &e); in fw_change_attrs()
237 struct tcf_proto *tp, unsigned long base, in fw_change() argument
242 struct fw_head *head = rtnl_dereference(tp->root); in fw_change()
271 fnew->tp = f->tp; in fw_change()
275 err = fw_change_attrs(net, tp, fnew, tb, tca, base, ovr); in fw_change()
289 tcf_unbind_filter(tp, &f->res); in fw_change()
309 rcu_assign_pointer(tp->root, head); in fw_change()
318 f->tp = tp; in fw_change()
320 err = fw_change_attrs(net, tp, f, tb, tca, base, ovr); in fw_change()
335 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg) in fw_walk() argument
337 struct fw_head *head = rtnl_dereference(tp->root); in fw_walk()
355 if (arg->fn(tp, (unsigned long)f, arg) < 0) { in fw_walk()
364 static int fw_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in fw_dump() argument
367 struct fw_head *head = rtnl_dereference(tp->root); in fw_dump()