test/distributor: fix burst flush on worker quit
test/distributor: fix burst flush on worker quit

While working on RISC-V port I have encountered a situation where worker
threads get stuck in the rte_distributor_return_pkt() function in the
burst test.
Investigation showed some of the threads enter this function with
flag RTE_DISTRIB_GET_BUF set in the d->retptr64[0]. At the same time the
main thread has already passed rte_distributor_process() so nobody will
clear this flag and hence workers can't return.

What I've noticed is that adding a flush just after the last _process(),
similarly to how quit_workers() function is written in the
test_distributor.c fixes the issue.
Lukasz Wojciechowski reproduced the same issue on x86 using a VM with 32
emulated CPU cores to force some lcores not to be woken up.

Fixes: 7c3287a10535 ("test/distributor: add performance test for burst mode")
Cc: stable@dpdk.org

Signed-off-by: Stanislaw Kardach <0d18f8336f2f75f44655e0db45e62a88edb4ec0c@semihalf.com>
Acked-by: David Hunt <763be7c8e0ad91e03160e7aed76d5cd41534e2f9@intel.com>
Tested-by: Lukasz Wojciechowski <a2d89656bbb2a6e8a64a294f13639c7f6683f95e@partner.samsung.com>
Reviewed-by: Lukasz Wojciechowski <a2d89656bbb2a6e8a64a294f13639c7f6683f95e@partner.samsung.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk