Lines Matching refs:hash
554 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash)
556 hash = jhash_1word(hash, ti->hash_seed);
557 return &ti->buckets[hash & (ti->n_buckets - 1)];
565 head = find_bucket(ti, flow->flow_table.hash);
574 head = find_bucket(ti, flow->ufid_table.hash);
652 /* Make sure number of hash bytes are multiple of u32. */
707 u32 hash;
711 hash = flow_hash(&masked_key, &mask->range);
712 head = find_bucket(ti, hash);
717 if (flow->mask == mask && flow->flow_table.hash == hash &&
783 * In case of a hash collision the entry is hashed in next segment.
796 u32 hash;
810 * value. To avoid hash collisions, rehash the 'skb_hash' with
816 hash = skb_hash;
821 int index = hash & (mc->cache_size - 1);
836 hash >>= MC_HASH_SHIFT;
925 u32 hash;
927 hash = ufid_hash(ufid);
928 head = find_bucket(ti, hash);
931 if (flow->ufid_table.hash == hash &&
1042 flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range);
1065 flow->ufid_table.hash = ufid_hash(&flow->id);