Lines Matching refs:tp
22 struct tcf_proto *tp;
27 const struct tcf_proto *tp,
30 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root);
46 static void *cls_cgroup_get(struct tcf_proto *tp, u32 handle)
51 static int cls_cgroup_init(struct tcf_proto *tp)
79 struct tcf_proto *tp, unsigned long base,
85 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
106 new->tp = tp;
113 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &new->exts, flags,
118 err = tcf_em_tree_validate(tp, tb[TCA_CGROUP_EMATCHES], &new->ematches);
122 rcu_assign_pointer(tp->root, new);
134 static void cls_cgroup_destroy(struct tcf_proto *tp, bool rtnl_held,
137 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
148 static int cls_cgroup_delete(struct tcf_proto *tp, void *arg, bool *last,
154 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg,
157 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
164 if (arg->fn(tp, head, arg) < 0) {
172 static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, void *fh,
175 struct cls_cgroup_head *head = rtnl_dereference(tp->root);