Lines Matching refs:hash
554 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) in find_bucket() argument
556 hash = jhash_1word(hash, ti->hash_seed); in find_bucket()
557 return &ti->buckets[hash & (ti->n_buckets - 1)]; in find_bucket()
565 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert()
574 head = find_bucket(ti, flow->ufid_table.hash); in ufid_table_instance_insert()
707 u32 hash; in masked_flow_lookup() local
711 hash = flow_hash(&masked_key, &mask->range); in masked_flow_lookup()
712 head = find_bucket(ti, hash); in masked_flow_lookup()
717 if (flow->mask == mask && flow->flow_table.hash == hash && in masked_flow_lookup()
796 u32 hash; in ovs_flow_tbl_lookup_stats() local
816 hash = skb_hash; in ovs_flow_tbl_lookup_stats()
821 int index = hash & (mc->cache_size - 1); in ovs_flow_tbl_lookup_stats()
836 hash >>= MC_HASH_SHIFT; in ovs_flow_tbl_lookup_stats()
925 u32 hash; in ovs_flow_tbl_lookup_ufid() local
927 hash = ufid_hash(ufid); in ovs_flow_tbl_lookup_ufid()
928 head = find_bucket(ti, hash); in ovs_flow_tbl_lookup_ufid()
931 if (flow->ufid_table.hash == hash && in ovs_flow_tbl_lookup_ufid()
1042 flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range); in flow_key_insert()
1065 flow->ufid_table.hash = ufid_hash(&flow->id); in flow_ufid_insert()