From: Jerin Jacob Date: Wed, 18 Jan 2017 01:21:15 +0000 (+0530) Subject: eal/x86: define I/O device memory barriers X-Git-Tag: spdx-start~4758 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e8025211711a08257c4731a69bb5624d7de6d7c6;p=dpdk.git eal/x86: define I/O device memory barriers The patch does not provide any functional change for IA. I/O barriers are mapped to existing smp barriers. CC: Bruce Richardson CC: Konstantin Ananyev Signed-off-by: Jerin Jacob --- diff --git a/lib/librte_eal/common/include/arch/x86/rte_atomic.h b/lib/librte_eal/common/include/arch/x86/rte_atomic.h index 00b1cdf5d0..4eac66631c 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h @@ -61,6 +61,12 @@ extern "C" { #define rte_smp_rmb() rte_compiler_barrier() +#define rte_io_mb() rte_mb() + +#define rte_io_wmb() rte_compiler_barrier() + +#define rte_io_rmb() rte_compiler_barrier() + /*------------------------- 16 bit atomic operations -------------------------*/ #ifndef RTE_FORCE_INTRINSICS