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: NRegis Duchesne <hpreg@vmware.com> Acked-by: NRonak Doshi <doshir@vmware.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录