ofproto-dpif: Revalidate on ofproto removal.
authorEthan Jackson <ethan@nicira.com>
Wed, 19 Jun 2013 02:22:56 +0000 (19:22 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 19 Jun 2013 20:22:29 +0000 (13:22 -0700)
When an ofproto is removed, this will likely require revalidation
of flows owned by other ofprotos under the same backer.

Found by inspection.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c

index 52d2277..e3acbc6 100644 (file)
@@ -1174,6 +1174,7 @@ destruct(struct ofproto *ofproto_)
     struct oftable *table;
     int i;
 
+    ofproto->backer->need_revalidate = REV_RECONFIGURE;
     hmap_remove(&all_ofproto_dpifs, &ofproto->all_ofproto_dpifs_node);
     complete_operations(ofproto);