On restarting worker 0 after shutdown, packets handled by worker 0 must be incremented only when a packet is received by it.
Signed-off-by: Harman Kalra <hka...@marvell.com> --- test/test/test_distributor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test/test_distributor.c b/test/test/test_distributor.c index 98919ec0c..a723254f7 100644 --- a/test/test/test_distributor.c +++ b/test/test/test_distributor.c @@ -373,7 +373,8 @@ handle_work_for_shutdown_test(void *arg) id, buf, buf, num); while (!quit) { - worker_stats[id].handled_packets++, count++; + worker_stats[id].handled_packets += num; + count += num; rte_pktmbuf_free(pkt); num = rte_distributor_get_pkt(d, id, buf, buf, num); } -- 2.18.0