net/bnxt: fix doorbell barrier location
authorLance Richardson <lance.richardson@broadcom.com>
Fri, 13 Nov 2020 16:04:45 +0000 (11:04 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:27 +0000 (19:43 +0100)
commitd1816ceae5a8e483ae3764e800571b57e1dfa960
tree5e4c67d7bea80566d9b880df9f587024737b87d3
parent28b987c442d5746f75d20f734bfac1f83f52797f
net/bnxt: fix doorbell barrier location

Simplify some doorbell functions now that rte_cio_wmb() has been
eliminated and rte_io_wmb() is equivalent for Arm.

Fix a performance degradation on x86 platforms caused by a
previous Arm performance fix by moving the compiler barrier
closer to the I/O write.

Fixes: f0f5d844d138 ("eal: remove deprecated coherent IO memory barriers")
Fixes: bfc1d45875e2 ("net/bnxt: fix performance for Arm")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ring.h