summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxq.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-01-25 13:02:48 -0800
committerThomas Monjalon <thomas@monjalon.net>2018-01-28 08:30:33 +0100
commit8d27708212aa9d81f3dbd485b7131220eb1d57fc (patch)
treeea428ce0963a39d28e3c8e0314214160d298607e /drivers/net/mlx5/mlx5_rxq.c
parent52bd60a5cf0b05793f66cd507df0388402499f2a (diff)
downloaddpdk-8d27708212aa9d81f3dbd485b7131220eb1d57fc.zip
dpdk-8d27708212aa9d81f3dbd485b7131220eb1d57fc.tar.gz
dpdk-8d27708212aa9d81f3dbd485b7131220eb1d57fc.tar.xz
net/mlx5: remove unnecessary memory barrier
As rte_write64() has an IO barrier, there's no need to have a barrier before the call. Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxq.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index 8e4fbbf..8cee5de 100644
--- a/drivers/net/mlx5/mlx5_rxq.c
+++ b/drivers/net/mlx5/mlx5_rxq.c
@@ -517,7 +517,6 @@ mlx5_arm_cq(struct mlx5_rxq_data *rxq, int sq_n_rxq)
doorbell = (uint64_t)doorbell_hi << 32;
doorbell |= rxq->cqn;
rxq->cq_db[MLX5_CQ_ARM_DB] = rte_cpu_to_be_32(doorbell_hi);
- rte_wmb();
rte_write64(rte_cpu_to_be_64(doorbell), cq_db_reg);
}