datapath: Fix tunnel hashing.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 5 Oct 2011 00:48:33 +0000 (17:48 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 5 Oct 2011 00:48:33 +0000 (17:48 -0700)
commitbd85a68f94b890c2d9b62788d68150770dc48a42
tree444e12b1c2f157b78ec5877aabc34ab8456aef34
parentdc56021df437b866c372085c195b8bdd12bd87b2
datapath: Fix tunnel hashing.

struct port_lookup_key is getting extra 4 bytes due to alignment on x86_64.
That is messing with hash calculation which uses sizeof operator to
calculate key length. Following patch fixes tunnel hashing by using correct
key length.

This bug was introduced by commit f686a33af8cb41ee228e6a35410c9a488fba3eb1
"datapath: Streamline tunnel port lookup"

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Bug #7622
datapath/tunnel.c
datapath/tunnel.h