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:34 +0000 (11:24 -0700)
commit35c93fb1d4b2c0c639daf745d877b37d7fc372c3
tree9770bc4f421cf55e1073078e375179fdc611221d
parent5d75419f72cf6a3c6c958f7dc5d225acc6021fe0
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