vswitchd: Destroy lacp in port_destroy().
authorEthan Jackson <ethan@nicira.com>
Tue, 22 Mar 2011 20:30:15 +0000 (13:30 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 22 Mar 2011 20:30:15 +0000 (13:30 -0700)
Port destruction could cause dangling lacp objects to live in the
lacp module's 'all_lacps' list.  This could cause bogus output for
the lacp/show appctl command.

Bug #5088.

vswitchd/bridge.c

index 77d6eed78984c27a9227319104fc190717c457b4..734d0de366ff632473c9d433d928888b361f428a 100644 (file)
@@ -4205,6 +4205,7 @@ port_destroy(struct port *port)
 
         port_flush_macs(port);
 
+        lacp_destroy(port->lacp);
         netdev_monitor_destroy(port->monitor);
         bitmap_free(port->trunks);
         free(port->bond_hash);