Lines Matching defs:hash
555 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash)
557 hash = jhash_1word(hash, ti->hash_seed);
558 return &ti->buckets[hash & (ti->n_buckets - 1)];
566 head = find_bucket(ti, flow->flow_table.hash);
575 head = find_bucket(ti, flow->ufid_table.hash);
653 /* Make sure number of hash bytes are multiple of u32. */
708 u32 hash;
712 hash = flow_hash(&masked_key, &mask->range);
713 head = find_bucket(ti, hash);
718 if (flow->mask == mask && flow->flow_table.hash == hash &&
784 * In case of a hash collision the entry is hashed in next segment.
797 u32 hash;
811 * value. To avoid hash collisions, rehash the 'skb_hash' with
817 hash = skb_hash;
822 int index = hash & (mc->cache_size - 1);
837 hash >>= MC_HASH_SHIFT;
926 u32 hash;
928 hash = ufid_hash(ufid);
929 head = find_bucket(ti, hash);
932 if (flow->ufid_table.hash == hash &&
1043 flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range);
1066 flow->ufid_table.hash = ufid_hash(&flow->id);