aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/neterion
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-10-05 17:35:34 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-05 17:35:34 -0400
commit94d60a7bc700f50720286e423ab1540ffedd5c15 (patch)
tree87d45d655fb4c81eee6ae8e834016fa0b8b5557b /drivers/net/ethernet/neterion
parent3e7307fc7b24120dcf795dd1b21fdc6286c48b4c (diff)
vxge: convert to SKB paged frag API.
[ Use DMA_TO_DEVICE and dma_mapping_error() -DaveM ] Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Jon Mason <jdmason@kudzu.us> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index ef1ba204bc59..a66f8fc0401e 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -923,11 +923,11 @@ vxge_xmit(struct sk_buff *skb, struct net_device *dev)
923 if (!frag->size) 923 if (!frag->size)
924 continue; 924 continue;
925 925
926 dma_pointer = (u64) pci_map_page(fifo->pdev, frag->page, 926 dma_pointer = (u64)skb_frag_dma_map(&fifo->pdev->dev, frag,
927 frag->page_offset, frag->size, 927 0, frag->size,
928 PCI_DMA_TODEVICE); 928 DMA_TO_DEVICE);
929 929
930 if (unlikely(pci_dma_mapping_error(fifo->pdev, dma_pointer))) 930 if (unlikely(dma_mapping_error(&fifo->pdev->dev, dma_pointer)))
931 goto _exit2; 931 goto _exit2;
932 vxge_debug_tx(VXGE_TRACE, 932 vxge_debug_tx(VXGE_TRACE,
933 "%s: %s:%d frag = %d dma_pointer = 0x%llx", 933 "%s: %s:%d frag = %d dma_pointer = 0x%llx",