bnx2: remove skb_dma_map/unmap calls from driver
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 2 Dec 2009 16:47:57 +0000 (16:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 03:57:13 +0000 (19:57 -0800)
commite95524a726904a1d2b91552f0577838f67d53c6c
treeae04c29ad8125fb43bbf34f30d9a90e120737233
parenta7d5ca40ff56e2cd4e30bbe91f2d0deab6bfc006
bnx2: remove skb_dma_map/unmap calls from driver

Due to the fact that skb_dma_map/unmap do not work correctly when a HW
IOMMU is enabled it has been recommended to go about removing the calls
from the network device drivers.

[ Fix bnx2_free_tx_skbs() ring indexing and use NETDEV_TX_OK return
  code in bnx2_start_xmit() after cleaning up DMA mapping errors. -Mchan ]

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h