summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-01-25 13:02:49 -0800
committerThomas Monjalon <thomas@monjalon.net>2018-01-28 08:30:35 +0100
commit4fe7f662ac5c71c8433d96e16b144719924dfceb (patch)
treee389ad30ae4f483db2b77cbad88b6124bfb6c185 /drivers/net/mlx5/mlx5_rxtx.c
parent8d27708212aa9d81f3dbd485b7131220eb1d57fc (diff)
downloaddpdk-4fe7f662ac5c71c8433d96e16b144719924dfceb.zip
dpdk-4fe7f662ac5c71c8433d96e16b144719924dfceb.tar.gz
dpdk-4fe7f662ac5c71c8433d96e16b144719924dfceb.tar.xz
net/mlx5: replace I/O memory barrier with coherent version
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 3b8f71c..7a24d67 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -1898,9 +1898,9 @@ skip:
return 0;
/* Update the consumer index. */
rxq->rq_ci = rq_ci >> sges_n;
- rte_io_wmb();
+ rte_cio_wmb();
*rxq->cq_db = rte_cpu_to_be_32(rxq->cq_ci);
- rte_io_wmb();
+ rte_cio_wmb();
*rxq->rq_db = rte_cpu_to_be_32(rxq->rq_ci);
#ifdef MLX5_PMD_SOFT_COUNTERS
/* Increment packets counter. */