From: Ben Pfaff Date: Thu, 19 Jan 2012 00:08:46 +0000 (-0800) Subject: ofproto-dpif: Revalidate flows after "fdb/flush". X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c06ffdd403206f7db41bf259e9bc27bf0f3b8dc;p=sliver-openvswitch.git ofproto-dpif: Revalidate flows after "fdb/flush". Otherwise bad translations can stick around. Bug #9253. Reported-by: Paul Ingram Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index e93e2a7f0..d1e513eea 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5645,7 +5645,7 @@ static void ofproto_unixctl_fdb_flush(struct unixctl_conn *conn, int argc OVS_UNUSED, const char *argv[], void *aux OVS_UNUSED) { - const struct ofproto_dpif *ofproto; + struct ofproto_dpif *ofproto; ofproto = ofproto_dpif_lookup(argv[1]); if (!ofproto) { @@ -5653,6 +5653,7 @@ ofproto_unixctl_fdb_flush(struct unixctl_conn *conn, int argc OVS_UNUSED, return; } mac_learning_flush(ofproto->ml); + ofproto->need_revalidate = true; unixctl_command_reply(conn, 200, "table successfully flushed"); }