Lines Matching refs:f

45 	struct basic_filter *f;  in basic_classify()  local
47 list_for_each_entry_rcu(f, &head->flist, link) { in basic_classify()
48 if (!tcf_em_tree_match(skb, &f->ematches, NULL)) in basic_classify()
50 *res = f->res; in basic_classify()
51 r = tcf_exts_exec(skb, &f->exts, res); in basic_classify()
63 struct basic_filter *f; in basic_get() local
68 list_for_each_entry(f, &head->flist, link) { in basic_get()
69 if (f->handle == handle) { in basic_get()
70 l = (unsigned long) f; in basic_get()
92 struct basic_filter *f = container_of(head, struct basic_filter, rcu); in basic_delete_filter() local
94 tcf_exts_destroy(&f->exts); in basic_delete_filter()
95 tcf_em_tree_destroy(&f->ematches); in basic_delete_filter()
96 kfree(f); in basic_delete_filter()
102 struct basic_filter *f, *n; in basic_destroy() local
107 list_for_each_entry_safe(f, n, &head->flist, link) { in basic_destroy()
108 list_del_rcu(&f->link); in basic_destroy()
109 tcf_unbind_filter(tp, &f->res); in basic_destroy()
110 call_rcu(&f->rcu, basic_delete_filter); in basic_destroy()
119 struct basic_filter *f = (struct basic_filter *) arg; in basic_delete() local
121 list_del_rcu(&f->link); in basic_delete()
122 tcf_unbind_filter(tp, &f->res); in basic_delete()
123 call_rcu(&f->rcu, basic_delete_filter); in basic_delete()
133 struct basic_filter *f, unsigned long base, in basic_set_parms() argument
151 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]); in basic_set_parms()
152 tcf_bind_filter(tp, &f->res, base); in basic_set_parms()
155 tcf_exts_change(tp, &f->exts, &e); in basic_set_parms()
156 tcf_em_tree_change(tp, &f->ematches, &t); in basic_set_parms()
157 f->tp = tp; in basic_set_parms()
236 struct basic_filter *f; in basic_walk() local
238 list_for_each_entry(f, &head->flist, link) { in basic_walk()
242 if (arg->fn(tp, (unsigned long) f, arg) < 0) { in basic_walk()
254 struct basic_filter *f = (struct basic_filter *) fh; in basic_dump() local
257 if (f == NULL) in basic_dump()
260 t->tcm_handle = f->handle; in basic_dump()
266 if (f->res.classid && in basic_dump()
267 nla_put_u32(skb, TCA_BASIC_CLASSID, f->res.classid)) in basic_dump()
270 if (tcf_exts_dump(skb, &f->exts) < 0 || in basic_dump()
271 tcf_em_tree_dump(skb, &f->ematches, TCA_BASIC_EMATCHES) < 0) in basic_dump()
276 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in basic_dump()