eal: introduce coherent I/O memory barriers
authorYongseok Koh <yskoh@mellanox.com>
Thu, 25 Jan 2018 21:02:43 +0000 (13:02 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 28 Jan 2018 07:30:21 +0000 (08:30 +0100)
commitcd36cc49e59cad65ea8151665fc42f38b748b918
treee28d3c8cdccd627d805b9c07d1edaf05eb3d79ee
parent9bea9e865a57ece9a60b1ab8302f5f2305e2c363
eal: introduce coherent I/O memory barriers

This commit introduces rte_cio_wmb() and rte_cio_rmb(), in order to
guarantee the ordering of coherent shared memory between the CPU and a DMA
capable device.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_eal/common/include/generic/rte_atomic.h