ofproto-dpif: LACP registration should cause revalidation.
authorEthan Jackson <ethan@nicira.com>
Mon, 3 Oct 2011 19:51:33 +0000 (12:51 -0700)
committerEthan Jackson <ethan@nicira.com>
Mon, 3 Oct 2011 20:20:43 +0000 (13:20 -0700)
Whenever a slave is registered to participate in LACP, it needs to
be revalidated so that it can receive LACP PDUs.  This bug can only
surface in an edge case where a pre-existing interface is added to
a pre-existing bond.  It would be unusual for a controller to do
this.

ofproto/ofproto-dpif.c

index 44c7e56dc2b78324c516ef713bbf3334b73a958a..6c65a37c742ccbca331a4bffd9eb13fcdac7a2c3 100644 (file)
@@ -990,6 +990,7 @@ bundle_add_port(struct ofbundle *bundle, uint32_t ofp_port,
         }
     }
     if (lacp) {
+        port->bundle->ofproto->need_revalidate = true;
         lacp_slave_register(bundle->lacp, port, lacp);
     }