From 1b9e9ea445a2bd6731e84025919c41c8ee310d25 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Mon, 24 May 2010 11:23:54 -0700
Subject: [PATCH] wdp-xflow: Update port groups when adding or removing ports.

Otherwise, output to OFPP_FLOOD and OFPP_ALL will go to the wrong set of
ports.
---
 ofproto/wdp-xflow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ofproto/wdp-xflow.c b/ofproto/wdp-xflow.c
index 3e4edeb46..3f80ded92 100644
--- a/ofproto/wdp-xflow.c
+++ b/ofproto/wdp-xflow.c
@@ -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
-- 
2.47.0