vswitchd: Reset LACP partner when set off.
authorEthan Jackson <ethan@nicira.com>
Sat, 5 Feb 2011 02:13:55 +0000 (18:13 -0800)
committerEthan Jackson <ethan@nicira.com>
Mon, 7 Feb 2011 19:27:51 +0000 (11:27 -0800)
Without this patch, the LACP partner information will not be
cleared if LACP is turned off after a successful negotiation.

vswitchd/bridge.c

index f786108..123ab2b 100644 (file)
@@ -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;
     }