From: Jerin Jacob Date: Wed, 18 Jan 2017 01:21:16 +0000 (+0530) Subject: eal/tile: define I/O device memory barriers X-Git-Tag: spdx-start~4757 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dff90714b15c9f36d259c55c5c86dd054005eeb7;p=dpdk.git eal/tile: define I/O device memory barriers The patch does not provide any functional change for tile. I/O barriers are mapped to existing smp barriers. CC: Zhigang Lu Signed-off-by: Jerin Jacob --- diff --git a/lib/librte_eal/common/include/arch/tile/rte_atomic.h b/lib/librte_eal/common/include/arch/tile/rte_atomic.h index 28825ff65b..1f332ee20c 100644 --- a/lib/librte_eal/common/include/arch/tile/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/tile/rte_atomic.h @@ -85,6 +85,12 @@ static inline void rte_rmb(void) #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() + #ifdef __cplusplus } #endif