numam-dpdk/lib/librte_distributor
Liang Ma 96c343868d distributor: fix livelock on flush
The Distributor autotest can lock if ran enough times. Worker and
distributor threads get into a livelock situation waiting on each
other.

To repeat:
`while sudo sh -c "echo 'distributor_autotest' |
		./build/app/test/dpdk-test"; do :; done`

The root cause is where we are flushing on exit, and do not wait for
all worker packets to be returned before exiting.
Add a delay on flush so that all worker packets are returned before
completing the flush.

Bugzilla ID: 316
Fixes: 775003ad2f ("distributor: add new burst-capable library")
Cc: stable@dpdk.org

Reported-by: Michael Santana <msantana@redhat.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
Signed-off-by: Liang Ma <liang.j.ma@intel.com>
Tested-by: Michael Santana <msantana@redhat.com>
2019-07-29 23:23:37 +02:00
..
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build build: set compat lib as universal dependency 2018-01-30 21:59:00 +01:00
rte_distributor_match_generic.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_distributor_match_sse.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_distributor_private.h doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
rte_distributor_v20.c eal: hide shared memory config 2019-07-06 10:32:34 +02:00
rte_distributor_v20.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_distributor_v1705.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_distributor_version.map distributor: add symbol versioning 2017-03-29 16:46:57 +02:00
rte_distributor.c distributor: fix livelock on flush 2019-07-29 23:23:37 +02:00
rte_distributor.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00