net/bnxt: enforce IO barrier for doorbell command
authorGavin Hu <gavin.hu@arm.com>
Mon, 16 Sep 2019 11:27:18 +0000 (19:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:30 +0000 (12:14 +0200)
commitdda8e0e48723fc90e6222fcc1b04b94f240ae9b2
treefcf8e67faa4f7a7ddc0bb7b6cf50d4b81ef38d5f
parent21ecbde99b2f0772d36eef8276a686f3135e5de9
net/bnxt: enforce IO barrier for doorbell command

The doorbell ringing operation requires a rte_io_mb immediately to make
the command complete and visible to the device before reading the
response, otherwise it may read stale or invalid responses.

Fixes: ca241d9a0952 ("net/bnxt: use I/O device memory read/write API")
Cc: stable@dpdk.org
Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c