From: Ben Pfaff Date: Thu, 5 Mar 2009 01:32:53 +0000 (-0800) Subject: secchan: Flush datapath flow table when initializing the switch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd4dabfa51cd1e846b208db1554c560ba8816e8f;p=openvswitch secchan: Flush datapath flow table when initializing the switch. The switch can't recover the entire OpenFlow state from the datapath, so it has the choice of either guessing at some missing information (which seems undesirable) or just flushing the table. The latter is easier, so do that. --- diff --git a/secchan/ofproto.c b/secchan/ofproto.c index b14556c3..7828b134 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -222,6 +222,7 @@ ofproto_create(const char *datapath, struct ofproto **ofprotop) dpif_close(&dpif); return error; } + dpif_flow_flush(&dpif); /* Start monitoring datapath ports for status changes. */ error = dpifmon_create(&dpif, &dpifmon);