vmxnet3: use DMA memory barriers where required
authorhpreg@vmware.com <hpreg@vmware.com>
Mon, 14 May 2018 12:14:49 +0000 (08:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 May 2018 02:43:57 +0000 (22:43 -0400)
commitf3002c1374fb2367c9d8dbb28852791ef90d2bac
tree07f2fe75de5e4a5fa5ec1fafa90346c89d578f0e
parent61aeecea40afb2b89933e27cd4adb10fc2e75cfd
vmxnet3: use DMA memory barriers where required

The gen bits must be read first from (resp. written last to) DMA memory.
The proper way to enforce this on Linux is to call dma_rmb() (resp.
dma_wmb()).

Signed-off-by: Regis Duchesne <hpreg@vmware.com>
Acked-by: Ronak Doshi <doshir@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h