Lines Matching defs:tp
40 struct tcf_proto *tp;
52 const struct tcf_proto *tp,
55 struct fw_head *head = rcu_dereference_bh(tp->root);
77 struct Qdisc *q = tcf_block_q(tp->chain->block);
91 static void *fw_get(struct tcf_proto *tp, u32 handle)
93 struct fw_head *head = rtnl_dereference(tp->root);
107 static int fw_init(struct tcf_proto *tp)
132 static void fw_destroy(struct tcf_proto *tp, bool rtnl_held,
135 struct fw_head *head = rtnl_dereference(tp->root);
146 tcf_unbind_filter(tp, &f->res);
156 static int fw_delete(struct tcf_proto *tp, void *arg, bool *last,
159 struct fw_head *head = rtnl_dereference(tp->root);
175 tcf_unbind_filter(tp, &f->res);
201 static int fw_set_parms(struct net *net, struct tcf_proto *tp,
206 struct fw_head *head = rtnl_dereference(tp->root);
210 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, flags,
233 tcf_bind_filter(tp, &f->res, base);
240 struct tcf_proto *tp, unsigned long base,
244 struct fw_head *head = rtnl_dereference(tp->root);
271 fnew->tp = f->tp;
280 err = fw_set_parms(net, tp, fnew, tb, tca, base, flags, extack);
295 tcf_unbind_filter(tp, &f->res);
316 rcu_assign_pointer(tp->root, head);
327 f->tp = tp;
329 err = fw_set_parms(net, tp, f, tb, tca, base, flags, extack);
345 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg,
348 struct fw_head *head = rtnl_dereference(tp->root);
362 if (!tc_cls_stats_dump(tp, arg, f))
368 static int fw_dump(struct net *net, struct tcf_proto *tp, void *fh,
371 struct fw_head *head = rtnl_dereference(tp->root);