[ovs-dev] [PATCH] ofproto-dpif: Revalidate flows after "fdb/flush".
Ben Pfaff
blp at nicira.com
Thu Jan 19 00:09:27 UTC 2012
Otherwise bad translations can stick around.
Bug #9253.
Reported-by: Paul Ingram <paul at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
ofproto/ofproto-dpif.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index d46fcf3..01a6f86 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -5807,7 +5807,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) {
@@ -5815,6 +5815,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");
}
--
1.7.2.5
More information about the dev
mailing list