diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-12-02 11:47:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-02 22:57:13 -0500 |
commit | e95524a726904a1d2b91552f0577838f67d53c6c (patch) | |
tree | ae04c29ad8125fb43bbf34f30d9a90e120737233 /drivers/net/bnx2.h | |
parent | a7d5ca40ff56e2cd4e30bbe91f2d0deab6bfc006 (diff) |
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>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index a4d83409f205..4908b9f74260 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -6559,6 +6559,7 @@ struct sw_pg { | |||
6559 | 6559 | ||
6560 | struct sw_tx_bd { | 6560 | struct sw_tx_bd { |
6561 | struct sk_buff *skb; | 6561 | struct sk_buff *skb; |
6562 | DECLARE_PCI_UNMAP_ADDR(mapping) | ||
6562 | unsigned short is_gso; | 6563 | unsigned short is_gso; |
6563 | unsigned short nr_frags; | 6564 | unsigned short nr_frags; |
6564 | }; | 6565 | }; |