From: Yongseok Koh Date: Thu, 25 Jan 2018 21:02:48 +0000 (-0800) Subject: net/mlx5: remove unnecessary memory barrier X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d27708212aa9d81f3dbd485b7131220eb1d57fc;p=dpdk.git 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 --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 8e4fbbf2a7..8cee5de12d 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); }