bond: bond_stb_enable_slave() never triggered.
authorEthan Jackson <ethan@nicira.com>
Tue, 19 Apr 2011 21:11:23 +0000 (14:11 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 19 Apr 2011 23:22:52 +0000 (16:22 -0700)
bond_stb_enable_slave() depended on bond->stb_slaves being
nonnull.  However, bond_stb_enable_slave() is responsible for
initializing this parameter.  Thus none of it's logic ever ran.

lib/bond.c

index d3b0e30a49e18bb838384f0ade994b0b48efcdee..5306bf44ee5aed8976a39b8137d02e607c1da9ad 100644 (file)
@@ -1321,7 +1321,7 @@ bond_stb_enable_slave(struct bond_slave *slave)
 {
     struct bond *bond = slave->bond;
 
-    if (!bond->stb_slaves) {
+    if (bond->balance != BM_STABLE) {
         return;
     }