• Home
  • Raw
  • Download

Lines Matching refs:tp

25 	struct tcf_proto	*tp;  member
29 static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_cgroup_classify() argument
32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify()
46 static unsigned long 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
72 struct tcf_proto *tp, unsigned long base, in cls_cgroup_change() argument
77 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_change()
98 new->tp = tp; in cls_cgroup_change()
105 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr); in cls_cgroup_change()
109 err = tcf_em_tree_validate(tp, tb[TCA_CGROUP_EMATCHES], &t); in cls_cgroup_change()
115 tcf_exts_change(tp, &new->exts, &e); in cls_cgroup_change()
116 tcf_em_tree_change(tp, &new->ematches, &t); in cls_cgroup_change()
118 rcu_assign_pointer(tp->root, new); in cls_cgroup_change()
127 static bool cls_cgroup_destroy(struct tcf_proto *tp, bool force) in cls_cgroup_destroy() argument
129 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_destroy()
140 static int cls_cgroup_delete(struct tcf_proto *tp, unsigned long arg) in cls_cgroup_delete() argument
145 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg) in cls_cgroup_walk() argument
147 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_walk()
152 if (arg->fn(tp, (unsigned long) head, arg) < 0) { in cls_cgroup_walk()
160 static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in cls_cgroup_dump() argument
163 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_dump()