Lines Matching defs:tp
56 struct tcf_proto *tp;
126 const struct tcf_proto *tp,
129 struct route4_head *head = rcu_dereference_bh(tp->root);
217 static void *route4_get(struct tcf_proto *tp, u32 handle)
219 struct route4_head *head = rtnl_dereference(tp->root);
243 static int route4_init(struct tcf_proto *tp)
251 rcu_assign_pointer(tp->root, head);
277 static void route4_destroy(struct tcf_proto *tp, bool rtnl_held,
280 struct route4_head *head = rtnl_dereference(tp->root);
299 tcf_unbind_filter(tp, &f->res);
313 static int route4_delete(struct tcf_proto *tp, void *arg, bool *last,
316 struct route4_head *head = rtnl_dereference(tp->root);
344 tcf_unbind_filter(tp, &f->res);
383 static int route4_set_parms(struct net *net, struct tcf_proto *tp,
395 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack);
466 f->tp = tp;
470 tcf_bind_filter(tp, &f->res, base);
477 struct tcf_proto *tp, unsigned long base, u32 handle,
481 struct route4_head *head = rtnl_dereference(tp->root);
523 f->tp = fold->tp;
528 err = route4_set_parms(net, tp, base, f, handle, head, tb,
541 tcf_block_netif_keep_dst(tp->chain->block);
564 tcf_unbind_filter(tp, &fold->res);
577 static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg,
580 struct route4_head *head = rtnl_dereference(tp->root);
596 if (!tc_cls_stats_dump(tp, arg, f))
604 static int route4_dump(struct net *net, struct tcf_proto *tp, void *fh,