aboutsummaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-18 16:08:46 -0800
committerBen Pfaff <blp@nicira.com>2012-01-23 16:13:11 -0800
commit70be4ff2bf25a8fbe6d414cf0dc3953ca5afacc4 (patch)
treeb0623b0c7d9ef00897f48e16fe657e8f4f30b232 /ofproto
parent4dfbe28cda4067acc155eb4412899edb13d1d3cd (diff)
ofproto-dpif: Revalidate flows after "fdb/flush".
Otherwise bad translations can stick around. Bug #9253. Reported-by: Paul Ingram <paul@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 09f4724c..d5ada4ca 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");
}