[ovs-dev] [PATCH v2] ofproto/bond: Drop traffic in balance-tcp mode without lacp.

nickcooper-zhangtonghao nic at opencloud.tech
Thu Feb 16 01:32:18 UTC 2017


The balance-tcp mode requires the upstream switch to support 802.3ad
with successful LACP negotiation. When bond ports are configured to
balance-tcp mode without lacp or lacp is disabled, drop the traffic.

Signed-off-by: nickcooper-zhangtonghao <nic at opencloud.tech>
---
 ofproto/bond.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ofproto/bond.c b/ofproto/bond.c
index 2e018aa..e4caf98 100644
--- a/ofproto/bond.c
+++ b/ofproto/bond.c
@@ -786,7 +786,11 @@ bond_check_admissibility(struct bond *bond, const void *slave_,
         if (!bond->lacp_fallback_ab) {
             goto out;
         }
+        break;
     case LACP_DISABLED:
+        if (bond->balance == BM_TCP) {
+            goto out;
+        }
         break;
     }
 
-- 
1.8.3.1






More information about the dev mailing list