[ovs-dev] [PATCH] bond: bond_stb_enable_slave() never triggered.

Ethan Jackson ethan at nicira.com
Tue Apr 19 23:23:08 UTC 2011


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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bond.c b/lib/bond.c
index d3b0e30..5306bf4 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -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;
     }
 
-- 
1.7.4.2




More information about the dev mailing list