numam-dpdk/lib/librte_distributor
Ruifeng Wang 5283392482 lib/distributor: fix deadlock on aarch64
Distributor and worker threads rely on data structs in cache line
for synchronization. The shared data structs were not protected.
This caused deadlock issue on weaker memory ordering platforms as
aarch64.
Fix this issue by adding memory barriers to ensure synchronization
among cores.

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

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: David Hunt <david.hunt@intel.com>
2019-10-25 10:20:31 +02:00
..
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build lib/distributor: fix deadlock on aarch64 2019-10-25 10:20:31 +02: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 lib/distributor: fix deadlock on aarch64 2019-10-25 10:20:31 +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 lib/distributor: fix deadlock on aarch64 2019-10-25 10:20:31 +02:00
rte_distributor.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00