bond: Change rebalance ratio to be more fair
authorZoltan Kiss <zoltan.kiss@citrix.com>
Mon, 7 Jan 2013 22:47:51 +0000 (22:47 +0000)
committerBen Pfaff <blp@nicira.com>
Mon, 7 Jan 2013 23:14:58 +0000 (15:14 -0800)
commit75fad143babf79f0f2841163f03843cf22e988df
treeb521e599342b6a8d3fcdf9db09cdc97ac91a685f
parentb8dddecfcc418ac4dcf01f6c57d976895e549c49
bond: Change rebalance ratio to be more fair

The old algorithm tries to converge to 0, despite it would mean a very
unbalanced situation. We're aiming for an ideal ratio of 1, meaning both
the 'from' and 'to' slave have the same load.  Therefore, we only move an
entry if it decreases the load on 'from', and brings us closer to equal
traffic load.

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/bond.c