2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

hash: Add hash_add64().

Add support for adding 64-bit words to hashes.  This will be used by
subsequent patches.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Jarno Rajahalme
2015-01-06 11:10:42 -08:00
parent 4ad07ad7c1
commit aae7c34f04
3 changed files with 28 additions and 12 deletions

View File

@@ -236,8 +236,7 @@ miniflow_hash(const struct miniflow *flow, uint32_t basis)
}
p++;
}
hash = hash_add(hash, hash_map);
hash = hash_add(hash, hash_map >> 32);
hash = hash_add64(hash, hash_map);
return hash_finish(hash, p - values);
}