net/mlx5: remove unnecessary memory barrier
authorYongseok Koh <yskoh@mellanox.com>
Thu, 25 Jan 2018 21:02:48 +0000 (13:02 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 28 Jan 2018 07:30:33 +0000 (08:30 +0100)
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>
drivers/net/mlx5/mlx5_rxq.c

index 8e4fbbf..8cee5de 100644 (file)
@@ -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);
 }