Lines Matching refs:hash

46 	u32 hash;		/* hash table size; 0 if undefined */  member
69 fp = &p->h[key % p->hash]; in tcindex_lookup()
129 p->hash = DEFAULT_HASH_SIZE; in tcindex_init()
151 for (i = 0; i < p->hash; i++) { in tcindex_delete()
190 return p->hash > (p->mask >> p->shift); in valid_perfect_hash()
244 cp->hash = p->hash; in tcindex_set_parms()
253 sizeof(*r) * cp->hash, GFP_KERNEL); in tcindex_set_parms()
256 for (i = 0; i < cp->hash; i++) in tcindex_set_parms()
269 cp->hash = nla_get_u32(tb[TCA_TCINDEX_HASH]); in tcindex_set_parms()
284 cp->hash > cp->alloc_hash) in tcindex_set_parms()
286 } else if (cp->h && cp->hash != cp->alloc_hash) { in tcindex_set_parms()
294 if (!cp->hash) { in tcindex_set_parms()
299 cp->hash = (cp->mask >> cp->shift) + 1; in tcindex_set_parms()
301 cp->hash = DEFAULT_HASH_SIZE; in tcindex_set_parms()
305 cp->alloc_hash = cp->hash; in tcindex_set_parms()
322 cp->perfect = kcalloc(cp->hash, sizeof(*r), GFP_KERNEL); in tcindex_set_parms()
325 for (i = 0; i < cp->hash; i++) in tcindex_set_parms()
331 struct tcindex_filter __rcu **hash; in tcindex_set_parms() local
333 hash = kcalloc(cp->hash, in tcindex_set_parms()
337 if (!hash) in tcindex_set_parms()
340 cp->h = hash; in tcindex_set_parms()
382 fp = cp->h + (handle % cp->hash); in tcindex_set_parms()
440 for (i = 0; i < p->hash; i++) { in tcindex_walk()
456 for (i = 0; i < p->hash; i++) { in tcindex_walk()
508 if (nla_put_u32(skb, TCA_TCINDEX_HASH, p->hash) || in tcindex_dump()
523 for (i = 0; !t->tcm_handle && i < p->hash; i++) { in tcindex_dump()