]> git.proxmox.com Git - ovs.git/commitdiff
bond: Fix error in bond_shift_load().
authorAlex Wang <alexw@nicira.com>
Thu, 22 Aug 2013 18:29:04 +0000 (11:29 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Aug 2013 18:21:36 +0000 (11:21 -0700)
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@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/bond.c

index 3834774d4b385670883193214367c326f8f0a663..5be1bae3e2bce820a852f41e19cdd5e8787e81d8 100644 (file)
@@ -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;
 }