Lines Matching refs:f
62 struct tcindex_filter_result *f = p->perfect + key; in tcindex_lookup() local
64 return tcindex_filter_is_set(f) ? f : NULL; in tcindex_lookup()
67 struct tcindex_filter *f; in tcindex_lookup() local
70 for (f = rcu_dereference_bh_rtnl(*fp); in tcindex_lookup()
71 f; in tcindex_lookup()
72 fp = &f->next, f = rcu_dereference_bh_rtnl(*fp)) in tcindex_lookup()
73 if (f->key == key) in tcindex_lookup()
74 return &f->result; in tcindex_lookup()
85 struct tcindex_filter_result *f; in tcindex_classify() local
91 f = tcindex_lookup(p, key); in tcindex_classify()
92 if (!f) { in tcindex_classify()
100 *res = f->res; in tcindex_classify()
103 return tcf_exts_exec(skb, &f->exts, res); in tcindex_classify()
120 static void tcindex_put(struct tcf_proto *tp, unsigned long f) in tcindex_put() argument
122 pr_debug("tcindex_put(tp %p,f 0x%lx)\n", tp, f); in tcindex_put()
149 struct tcindex_filter *f = NULL; in tcindex_delete() local
160 for (f = rtnl_dereference(*walk); f; in tcindex_delete()
161 walk = &f->next, f = rtnl_dereference(*walk)) { in tcindex_delete()
162 if (&f->result == r) in tcindex_delete()
169 rcu_assign_pointer(*walk, rtnl_dereference(f->next)); in tcindex_delete()
173 if (f) in tcindex_delete()
174 kfree_rcu(f, rcu); in tcindex_delete()
232 struct tcindex_filter *f = NULL; /* make gcc behave */ in tcindex_set_parms() local
358 f = kzalloc(sizeof(*f), GFP_KERNEL); in tcindex_set_parms()
359 if (!f) in tcindex_set_parms()
361 f->key = handle; in tcindex_set_parms()
362 tcindex_filter_result_init(&f->result); in tcindex_set_parms()
363 f->next = NULL; in tcindex_set_parms()
387 tcf_exts_change(tp, &f->result.exts, &r->exts); in tcindex_set_parms()
395 rcu_assign_pointer(*fp, f); in tcindex_set_parms()
442 struct tcindex_filter *f, *next; in tcindex_walk() local
464 for (f = rtnl_dereference(p->h[i]); f; f = next) { in tcindex_walk()
465 next = rtnl_dereference(f->next); in tcindex_walk()
467 if (walker->fn(tp, (unsigned long) &f->result, in tcindex_walk()
522 struct tcindex_filter *f; in tcindex_dump() local
529 for (f = rtnl_dereference(*fp); in tcindex_dump()
530 !t->tcm_handle && f; in tcindex_dump()
531 fp = &f->next, f = rtnl_dereference(*fp)) { in tcindex_dump()
532 if (&f->result == r) in tcindex_dump()
533 t->tcm_handle = f->key; in tcindex_dump()