From: Ethan Jackson Date: Sat, 5 Feb 2011 02:13:55 +0000 (-0800) Subject: vswitchd: Reset LACP partner when set off. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edbad245caa782220c6c3d97df39701065e3499b;p=openvswitch vswitchd: Reset LACP partner when set off. Without this patch, the LACP partner information will not be cleared if LACP is turned off after a successful negotiation. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index f786108c..123ab2b8 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -4469,6 +4469,9 @@ port_update_lacp(struct port *port) bool key_changed; if (!port->lacp || port->n_ifaces < 1) { + for (i = 0; i < port->n_ifaces; i++) { + iface_set_lacp_defaulted(port->ifaces[i]); + } return; }