From 490df1ef184f4a506aa1837e35179e3f340be8d0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 18 Jan 2012 16:08:46 -0800 Subject: [PATCH] ofproto-dpif: Revalidate flows after "fdb/flush". Otherwise bad translations can stick around. Bug #9253. Reported-by: Paul Ingram Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index f9084ca66..471ba643d 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5815,7 +5815,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) { @@ -5823,6 +5823,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"); } -- 2.43.0