Message ID | 1487208738-24881-1-git-send-email-nic@opencloud.tech |
---|---|
State | Accepted |
Headers | show |
On Wed, Feb 15, 2017 at 5:32 PM, nickcooper-zhangtonghao <nic@opencloud.tech> wrote: > 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@opencloud.tech> Applied. Thanks.
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; }
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@opencloud.tech> --- ofproto/bond.c | 4 ++++ 1 file changed, 4 insertions(+)