• Home
  • Raw
  • Download

Lines Matching refs:tp

34 	struct tcf_proto	*tp;  member
41 const struct tcf_proto *tp, in basic_classify() argument
45 struct basic_head *head = rcu_dereference_bh(tp->root); in basic_classify()
62 static void *basic_get(struct tcf_proto *tp, u32 handle) in basic_get() argument
64 struct basic_head *head = rtnl_dereference(tp->root); in basic_get()
76 static int basic_init(struct tcf_proto *tp) in basic_init() argument
85 rcu_assign_pointer(tp->root, head); in basic_init()
108 static void basic_destroy(struct tcf_proto *tp, bool rtnl_held, in basic_destroy() argument
111 struct basic_head *head = rtnl_dereference(tp->root); in basic_destroy()
116 tcf_unbind_filter(tp, &f->res); in basic_destroy()
127 static int basic_delete(struct tcf_proto *tp, void *arg, bool *last, in basic_delete() argument
130 struct basic_head *head = rtnl_dereference(tp->root); in basic_delete()
134 tcf_unbind_filter(tp, &f->res); in basic_delete()
147 static int basic_set_parms(struct net *net, struct tcf_proto *tp, in basic_set_parms() argument
155 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); in basic_set_parms()
159 err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &f->ematches); in basic_set_parms()
165 tcf_bind_filter(tp, &f->res, base); in basic_set_parms()
168 f->tp = tp; in basic_set_parms()
173 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument
178 struct basic_head *head = rtnl_dereference(tp->root); in basic_change()
221 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], flags, in basic_change()
234 tcf_unbind_filter(tp, &fold->res); in basic_change()
249 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg, in basic_walk() argument
252 struct basic_head *head = rtnl_dereference(tp->root); in basic_walk()
256 if (!tc_cls_stats_dump(tp, arg, f)) in basic_walk()
269 static int basic_dump(struct net *net, struct tcf_proto *tp, void *fh, in basic_dump() argument