From f728af2ed60e873145019f24abfcaf92f4eccd0a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 31 Jan 2013 15:47:24 -0800 Subject: [PATCH] ofproto-dpif: Clear revalidation flags only once, not per-ofproto. Found by inspection. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- ofproto/ofproto-dpif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) { -- 2.47.0