]> git.baikalelectronics.ru Git - kernel.git/commit
VMXNET3: Add support for virtual IOMMU
authorAndy King <acking@vmware.com>
Fri, 23 Aug 2013 16:33:49 +0000 (09:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Aug 2013 20:02:02 +0000 (16:02 -0400)
commit8cc29470c69aa7b8d2bb1fa5a60b62f9db633f13
treed6be118d336bc74951340e440211c847d95e08f2
parentb7a2561bca5291d162e0b99b5d1dfe43c3b9a41c
VMXNET3: Add support for virtual IOMMU

This patch adds support for virtual IOMMU to the vmxnet3 module.  We
switch to DMA consistent mappings for anything we pass to the device.
There were a few places where we already did this, but using pci_blah();
these have been fixed to use dma_blah(), along with all new occurrences
where we've replaced kmalloc() and friends.

Also fix two small bugs:
1) use after free of rq->buf_info in vmxnet3_rq_destroy()
2) a cpu_to_le32() that should have been a cpu_to_le64()

Acked-by: George Zhang <georgezhang@vmware.com>
Acked-by: Aditya Sarwade <asarwade@vmware.com>
Signed-off-by: Andy King <acking@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h