[ovs-dev] [PATCH 1/5] vswitchd: Reset LACP partner when set off.

Ethan Jackson ethan at nicira.com
Sat Feb 5 02:35:46 UTC 2011


Without this patch, the LACP partner information will not be
cleared if LACP is turned off after a successful negotiation.
---
 vswitchd/bridge.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index f786108..123ab2b 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;
     }
 
-- 
1.7.4





More information about the dev mailing list