test/distributor: fix worker notification in burst mode
authorStanislaw Kardach <kda@semihalf.com>
Wed, 28 Apr 2021 14:25:52 +0000 (16:25 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 5 May 2021 16:21:26 +0000 (18:21 +0200)
commit00dac9a99c783e0d442e73842ebb006f2f39c59d
treec54aaee18cbaa56e050e37dfc5a9800f1dca9980
parenta956adb2817cac30c47c07855eb265f283bffde0
test/distributor: fix worker notification in burst mode

Because a single worker can process more than one packet from the
distributor, the final set of notifications in burst mode should be
sent one-by-one to ensure that each worker has a chance to wake up.

This fix mirrors the change done in the functional test by
commit f72bff0ec272 ("test/distributor: fix quitting workers in burst
mode").

Fixes: c3eabff124e6 ("distributor: add unit tests")
Cc: stable@dpdk.org
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Acked-by: David Hunt <david.hunt@intel.com>
Tested-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Reviewed-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
app/test/test_distributor_perf.c