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>
This commit is contained in:
Yongseok Koh 2018-01-25 13:02:48 -08:00 committed by Thomas Monjalon
parent 52bd60a5cf
commit 8d27708212

View File

@ -517,7 +517,6 @@ mlx5_arm_cq(struct mlx5_rxq_data *rxq, int sq_n_rxq)
doorbell = (uint64_t)doorbell_hi << 32; doorbell = (uint64_t)doorbell_hi << 32;
doorbell |= rxq->cqn; doorbell |= rxq->cqn;
rxq->cq_db[MLX5_CQ_ARM_DB] = rte_cpu_to_be_32(doorbell_hi); 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); rte_write64(rte_cpu_to_be_64(doorbell), cq_db_reg);
} }