in-band: Really reinstall in-band rules in in_band_flushed().
authorBen Pfaff <blp@nicira.com>
Tue, 20 Apr 2010 20:39:35 +0000 (13:39 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Apr 2010 20:39:35 +0000 (13:39 -0700)
ofproto/in-band.c

index aa522de2713c7b0b3e199953281652a1821849d8..85cc034d1ceca6f787ef6f449375d6d3db2ca5cc 100644 (file)
@@ -740,10 +740,12 @@ in_band_wait(struct in_band *in_band)
     }
 }
 
+/* ofproto has flushed all flows from the flow table and it is calling us back
+ * to allow us to reinstall the ones that are important to us. */
 void
 in_band_flushed(struct in_band *in_band)
 {
-    clear_rules(in_band);
+    add_rules(in_band);
 }
 
 int