bridge: Avoid redundant dpif_flow_flush().
authorBen Pfaff <blp@nicira.com>
Tue, 29 Mar 2011 17:16:43 +0000 (10:16 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Apr 2011 22:52:20 +0000 (15:52 -0700)
ofproto_create() also calls dpif_flow_flush() very soon afterward.  This
seems more clearly in ofproto's domain anyhow.

vswitchd/bridge.c

index b87dfdffb50637e988a8bb7399ae4993993c1ed2..44474966ead69747977ec55e387533767017c19f 100644 (file)
@@ -1644,7 +1644,6 @@ bridge_create(const struct ovsrec_bridge *br_cfg)
         free(br);
         return NULL;
     }
-    dpif_flow_flush(br->dpif);
 
     error = ofproto_create(br_cfg->name, br_cfg->datapath_type, &bridge_ofhooks,
                            br, &br->ofproto);