ofproto: Fix consistent hashing
authorLiran Schour <lirans@il.ibm.com>
Tue, 12 Jul 2016 06:15:40 +0000 (09:15 +0300)
committerBen Pfaff <blp@ovn.org>
Wed, 13 Jul 2016 21:25:08 +0000 (14:25 -0700)
commitc09cb861c0186ce051f46a81d4bd3daa2eeae98f
tree2c7cabc8fbef88de348a4f04e77a7ae5efcf9bd1
parent63a10e1e4c48c314f002112f45e4a03b0db2357c
ofproto: Fix consistent hashing

Hashing will not be consistent as long as we use for hashing the index of the
bucket in the list (for remove/insert of buckets not from/to the end of the
bucket list).
Use bucket_id for hashing instead.

Signed-off-by: Liran Schour <lirans@il.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Simon Horman <simon.horman@netronome.com>
ofproto/ofproto-dpif-xlate.c