Lines Matching refs:tp

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