eal: introduce SMP memory barriers
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 6 Nov 2015 09:40:32 +0000 (15:10 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Nov 2015 21:44:01 +0000 (22:44 +0100)
commit4c02e453cc6272e20c3a901b7afb6f49ec08f1b3
tree8200f13d9cf238f4aee0694a57feda1ddfb6822f
parentf4f4b99f2b679109561167c107ba3a95030fda9f
eal: introduce SMP memory barriers

This commit introduce rte_smp_mb(), rte_smp_wmb() and rte_smp_rmb(), in
order to enable memory barriers between lcores.
The patch does not provide any functional change for IA, the goal is to
have infrastructure for weakly ordered machines like ARM to work on DPDK.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/virtio/virtqueue.h
drivers/net/xenvirt/rte_eth_xenvirt.c
drivers/net/xenvirt/virtqueue.h
lib/librte_eal/common/include/arch/arm/rte_atomic.h
lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
lib/librte_eal/common/include/arch/tile/rte_atomic.h
lib/librte_eal/common/include/arch/x86/rte_atomic.h
lib/librte_eal/common/include/generic/rte_atomic.h
lib/librte_ring/rte_ring.h