net/bnxt: fix doorbell write ordering
authorLance Richardson <lance.richardson@broadcom.com>
Mon, 14 Dec 2020 18:56:38 +0000 (13:56 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000 (16:03 +0100)
commit73d1cc96be6a7b49d7d3d79b5a1daa1d94d57956
tree51f9e6cc08261beb7771af17a2c7ee0b9811c69e
parentf0beaf802145e21e1ce60d4ca2724436b70c316e
net/bnxt: fix doorbell write ordering

Write completion queue doorbell before receive descriptor
doorbell to avoid possibility of completion queue overflow
when completion queue size is equal to receive descriptor
ring size. Remove unnecessary compiler barriers (db write
functions have the necessary barriers.)

Fixes: 637e34befd9c ("net/bnxt: optimize Rx processing")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c