From: Harry van Haaren Date: Mon, 21 Aug 2017 12:58:13 +0000 (+0100) Subject: service: reset core call stats on dump X-Git-Tag: spdx-start~2158 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4977b84f99c67577d45eeb0f429bd7a882cd1627;p=dpdk.git service: reset core call stats on dump This aligns with the service stats, which are currently also reset on read. A generic statistics API would be helpful for the service library in future. Signed-off-by: Harry van Haaren Acked-by: Pavan Nikhilesh --- diff --git a/lib/librte_eal/common/rte_service.c b/lib/librte_eal/common/rte_service.c index f022b28f83..ddcf3a845e 100644 --- a/lib/librte_eal/common/rte_service.c +++ b/lib/librte_eal/common/rte_service.c @@ -703,7 +703,7 @@ int32_t rte_service_dump(FILE *f, uint32_t id) if (lcore_config[i].core_role != ROLE_SERVICE) continue; - uint32_t reset = 0; + uint32_t reset = 1; service_dump_calls_per_lcore(f, i, reset); }