bond: Always use L4 hash for stable bonds.
[openvswitch] / lib / bond.c
index 9a688be6988bd1331bb44b84354e76a53675ffd7..85bb2da948c9d5c19bd91c045094beabf1c63129 100644 (file)
@@ -1305,8 +1305,8 @@ bond_link_status_update(struct bond_slave *slave, struct tag_set *tags)
 static bool
 bond_is_tcp_hash(const struct bond *bond)
 {
-    return (bond->balance == BM_TCP || bond->balance == BM_STABLE)
-        && bond->lacp_negotiated;
+    return (bond->balance == BM_TCP && bond->lacp_negotiated)
+        || bond->balance == BM_STABLE;
 }
 
 static unsigned int