wdp-xflow: Update port groups when adding or removing ports.
authorBen Pfaff <blp@nicira.com>
Mon, 24 May 2010 18:23:54 +0000 (11:23 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 24 May 2010 18:24:20 +0000 (11:24 -0700)
Otherwise, output to OFPP_FLOOD and OFPP_ALL will go to the wrong set of
ports.

ofproto/wdp-xflow.c

index 3e4edeb..3f80ded 100644 (file)
@@ -2179,6 +2179,9 @@ wx_port_update(struct wx *wx, const char *devname)
         wx_port_install(wx, new_wdp_port);
     }
     wx_port_free(old_wdp_port);
+
+    /* Update port groups. */
+    wx_port_refresh_groups(wx);
 }
 
 static int