ibmvnic: substitute mb() with dma_wmb() for send_*crq* functions
authorLijun Pan <ljp@linux.ibm.com>
Sat, 13 Feb 2021 02:36:46 +0000 (20:36 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 23:11:04 +0000 (15:11 -0800)
commit1a42156f52bd4de0e2442671bc24b7ffc7b01c52
tree974baadc392b1494ef1a003ec2b946e8699dc274
parent1c7d45e7b2c29080bf6c8cd0e213cc3cbb62a054
ibmvnic: substitute mb() with dma_wmb() for send_*crq* functions

The CRQ and subCRQ descriptors are DMA mapped, so dma_wmb(),
though weaker, is good enough to protect the data structures.

Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Acked-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c