From de80e4b65ba14c8d21b537470678fe0562ca79a8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 23 Sep 2013 10:24:05 -0700 Subject: [PATCH] ofproto-dpif-upcall: Make miss handlers accumulate coverage counters. The miss handler threads do not call poll_block(), which calls coverage_clear() indirectly. This meant that coverage counters incremented by miss handler threads never got integrated into the global coverage counters and therefore did not show up in coverage logging or "ovs-appctl coverage/show" output. This commit fixes the problem. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-upcall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 74e8e9273..5222c11e1 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -420,6 +420,8 @@ udpif_upcall_handler(void *arg) ovs_mutex_unlock(&handler->mutex); handle_upcalls(handler->udpif, &misses); + + coverage_clear(); } } -- 2.43.0