From: Ben Pfaff Date: Thu, 31 Jan 2013 23:47:24 +0000 (-0800) Subject: ofproto-dpif: Clear revalidation flags only once, not per-ofproto. X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f728af2ed60e873145019f24abfcaf92f4eccd0a;p=ovs.git ofproto-dpif: Clear revalidation flags only once, not per-ofproto. Found by inspection. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index efd47b38f..b5c3d8ef0 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -867,6 +867,10 @@ type_run(const char *type) drop_key_clear(backer); } + /* Clear the revalidation flags. */ + tag_set_init(&backer->revalidate_set); + backer->need_revalidate = 0; + HMAP_FOR_EACH (ofproto, all_ofproto_dpifs_node, &all_ofproto_dpifs) { struct facet *facet; @@ -874,10 +878,6 @@ type_run(const char *type) continue; } - /* Clear the revalidation flags. */ - tag_set_init(&backer->revalidate_set); - backer->need_revalidate = 0; - HMAP_FOR_EACH (facet, hmap_node, &ofproto->facets) { if (need_revalidate || tag_set_intersects(&revalidate_set, facet->tags)) {