diff options
author | nickcooper-zhangtonghao <nic@opencloud.tech> | 2017-02-15 17:32:18 -0800 |
---|---|---|
committer | Andy Zhou <azhou@ovn.org> | 2017-02-16 12:34:17 -0800 |
commit | e5c4f8276b55dfcbad3deecc84a20781d416fe91 (patch) | |
tree | 4ac02734edb130462e671b4390beda863b770b09 | |
parent | 4c30b24602c3ab73447073f7bb7644647734a6c0 (diff) | |
download | openvswitch-e5c4f8276b55dfcbad3deecc84a20781d416fe91.tar.gz |
ofproto/bond: Drop traffic in balance-tcp mode without lacp.
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, drop the traffic.
Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>
Signed-off-by: Andy Zhou <azhou@ovn.org>
-rw-r--r-- | ofproto/bond.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ofproto/bond.c b/ofproto/bond.c index 2e018aa78..e4caf9847 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; } |