[ovs-git] Open vSwitch: multipath: Fix off-by-one in hash_threshold multipath calculation. (master)

dev at openvswitch.org dev at openvswitch.org
Sat Jan 22 01:23:01 UTC 2011

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  d7bf2b001f07e63054bbc0d58fe64ce47bc3ab21 (commit)
      from  1dfee98d87605bc52ed58738edf01e201b189615 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d7bf2b001f07e63054bbc0d58fe64ce47bc3ab21
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d7bf2b001f07e63054bbc0d58fe64ce47bc3ab21
Author: Ben Pfaff <blp at nicira.com>
multipath: Fix off-by-one in hash_threshold multipath calculation.
0xffffffff / (0xffffffff / n) can have a value as large as n (consider the
n == 1 case), but we need a value no bigger than n-1.  So add 1 before
dividing to fix the problem.

This caused a test failure on Debian "lenny" amd64 when apparently
unrelated code changed.

Reported-by: Justin Pettit <jpettit at nicira.com>


Summary of changes:
 lib/multipath.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

Open vSwitch

More information about the git mailing list