[ovs-dev] [PATCH] bond: Fix error in bond_shift_load().

Alex Wang alexw at nicira.com
Thu Aug 22 18:29:04 UTC 2013


Commit 4a1b8f30e(bond: Stop using tags.) introduced the bug that
prevents the load shifting when the traffic needs to be balanced.
This commit fixes this bug.

Signed-off-by: Alex Wang <alexw at nicira.com>
---
 lib/bond.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bond.c b/lib/bond.c
index 3834774..5be1bae 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -755,6 +755,7 @@ bond_shift_load(struct bond_entry *hash, struct bond_slave *to)
     to->tx_bytes += delta;
 
     /* Arrange for flows to be revalidated. */
+    hash->slave = to;
     bond->bond_revalidate = true;
 }
 
-- 
1.7.9.5




More information about the dev mailing list