diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-01-21 17:09:21 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-01-21 17:09:21 -0800 |
| commit | d7bf2b001f07e63054bbc0d58fe64ce47bc3ab21 (patch) | |
| tree | 877b924c71c57ce5b9aba58a65331f8413769ef6 /datapath/vport.c | |
| parent | 1dfee98d87605bc52ed58738edf01e201b189615 (diff) | |
| download | openvswitch-d7bf2b001f07e63054bbc0d58fe64ce47bc3ab21.tar.gz | |
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@nicira.com>
Diffstat (limited to 'datapath/vport.c')
0 files changed, 0 insertions, 0 deletions
