numam-dpdk/drivers/net/mlx4
Feifei Wang f0f7c557f3 net/mlx4: remove barrier for memory region cache
'dev_gen' is a variable to trigger all cores to flush their local caches
once the global MR cache has been rebuilt.

This is due to MR cache's R/W lock can maintain synchronization between
threads:

1. dev_gen and global cache updating ordering inside the lock protected
section does not matter. Because other threads cannot take the lock
until global cache has been updated. Thus, in out of order platform,
even if other agents firstly observe updated dev_gen but global does
not update, they still have to wait the lock. As a result, it is
unnecessary to add a wmb between global cache rebuilding and updating
the dev_gen to keep the memory store order.

2. Store-Release of unlock provides the implicit wmb at the level
visible by software. This makes 'rebuilding global cache' and 'updating
dev_gen' be observed before local_cache starts to be updated by other
agents. Thus, wmb after 'updating dev_gen' can be removed.

Suggested-by: Ruifeng Wang <ruifeng.wang@arm.com>
Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-06-23 17:02:35 +02:00
..
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mlx4_ethdev.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_flow.c net/mlx4: fix RSS action with null hash key 2021-04-13 13:38:13 +02:00
mlx4_flow.h ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
mlx4_glue.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_glue.h net/mlx: remove separate ABI version for glue libraries 2020-11-03 23:35:07 +01:00
mlx4_intr.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_mp.c net/mlx4: fix secondary process initialization ordering 2021-05-12 10:47:21 +02:00
mlx4_mr.c net/mlx4: remove barrier for memory region cache 2021-06-23 17:02:35 +02:00
mlx4_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx4_prm.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_rxq.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_rxtx.c net/mlx4: fix buffer leakage on device close 2021-04-28 08:43:31 +02:00
mlx4_rxtx.h net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
mlx4_txq.c net/mlx4: fix buffer leakage on device close 2021-04-28 08:43:31 +02:00
mlx4_utils.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_utils.h net/mlx4: enable debug logs dynamically 2021-03-15 14:30:53 +01:00
mlx4.c net/mlx4: fix leak when configured repeatedly 2021-05-16 14:58:23 +02:00
mlx4.h net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00