]> git.proxmox.com Git - ovs.git/commit
nx-match: Fix distribution of hash function for NXM/OXM headers.
authorBen Pfaff <blp@nicira.com>
Wed, 24 Jun 2015 18:17:12 +0000 (11:17 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Jun 2015 18:24:06 +0000 (11:24 -0700)
commit6016cd36bd49077d5627afbf0928f2ccee13dc55
tree1ae6dcddbff20f61eaca405f49d402cd2d28ef0a
parent885648d972f3d85c55cfb89e32773f1460bfe7ea
nx-match: Fix distribution of hash function for NXM/OXM headers.

NXM/OXM headers as represented in this file are 64-bit long and the low
bits are essentially constant (almost always 0) so using hash_int(),
which takes an uint32_t, is going to be a useless hash function.  This
commit fixes the problem.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
lib/nx-match.c