multipath: Correctly calculate number of required destination bits.
authorBen Pfaff <blp@nicira.com>
Tue, 27 Dec 2011 21:37:43 +0000 (13:37 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Jan 2012 00:51:29 +0000 (16:51 -0800)
commit300c69464ca88ca97d4ce842b590ce6ce603201b
treee2f746a0e56eb684a6465df8e75c066ec3e913da
parent90bf1e0732ac9b11dd51ca856b635cac1f0269c1
multipath: Correctly calculate number of required destination bits.

The previous calculation was wrong when n_links was a power of 2.

Reported-by: Paul Ingram <paul@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/multipath.c
lib/util.c
lib/util.h