test/distributor: fix flush with worker shutdown
authorHarman Kalra <hkalra@marvell.com>
Fri, 5 Jul 2019 10:05:04 +0000 (10:05 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jul 2019 20:33:55 +0000 (22:33 +0200)
commitc275ded129cc553309c544b0574826ab23eb2153
treea78e54a0ae57c7df161926eb1cd91b4e4ae713ab
parentb685129c79e4d98607a4f234c5ec4d60138ef116
test/distributor: fix flush with worker shutdown

On restarting worker 0 after shutdown, packets handled by
worker 0 must be incremented only when a packet is received by
it.

Fixes: c3eabff124e6 ("distributor: add unit tests")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: David Hunt <david.hunt@intel.com>
app/test/test_distributor.c