bond: Use active-backup mode on LACP failure.
authorRavi Kondamuru <Ravi.Kondamuru@citrix.com>
Mon, 4 Nov 2013 23:07:10 +0000 (23:07 +0000)
committerEthan Jackson <ethan@nicira.com>
Tue, 12 Nov 2013 22:22:48 +0000 (14:22 -0800)
commit9dd165e0508143d36c73f258d8bcfdbbb356830a
tree558fab7623e1217f82ad795809d62e7a21d6582c
parent3767b63136bdd2b070e0638b8fd8f3b24cf9277e
bond: Use active-backup mode on LACP failure.

Commit bdebeece5 (lacp: Require successful LACP negotiations when
configured.) makes successful LACP negotiation mandatory for the
bond to come UP. This patch provides a configuration option to
bring up the bond by falling back to active-backup mode on LACP
negotiation failure.

Several of the physical switches that support LACP block all traffic
for ports that are configured to use LACP, until LACP is negotiated
with the host. When configuring a LACP bond on a OVS host
(eg: XenServer), this means that there will be an interruption of the
network connectivity between the time the ports on the physical
switch and the bond on the OVS host are configured. The interruption
may be relatively long, if different people are responsible for
managing the switches and the OVS host.

Such network connectivity failure can be avoided if LACP can be
configured on the OVS host before configuring the physical switch,
and having the OVS host fall back to a bond mode (active-backup) till
the physical switch LACP configuration is complete. An option
"lacp-fallback-ab" is introduced with this patch to provide such
behavior on openvswitch.

Signed-off-by: Ravi Kondamuru <Ravi.Kondamuru@citrix.com>
Signed-off-by: Dominic Curran <Dominic.Curran@citrix.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/bond.c
lib/bond.h
lib/lacp.c
lib/lacp.h
vswitchd/INTERNALS
vswitchd/bridge.c
vswitchd/vswitch.xml