From: Ben Pfaff Date: Thu, 19 Jan 2012 00:08:46 +0000 (-0800) Subject: ofproto-dpif: Revalidate flows after "fdb/flush". X-Git-Tag: v1.4.0~11 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=70be4ff2bf25a8fbe6d414cf0dc3953ca5afacc4;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 09f4724cf..d5ada4ca0 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5592,7 +5592,7 @@ static void ofproto_unixctl_fdb_flush(struct unixctl_conn *conn, const char *args, void *aux OVS_UNUSED) { - const struct ofproto_dpif *ofproto; + struct ofproto_dpif *ofproto; ofproto = ofproto_dpif_lookup(args); if (!ofproto) { @@ -5600,6 +5600,7 @@ ofproto_unixctl_fdb_flush(struct unixctl_conn *conn, return; } mac_learning_flush(ofproto->ml); + ofproto->need_revalidate = true; unixctl_command_reply(conn, 200, "table successfully flushed"); }