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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user