Skip to content

Commit

Permalink
vxge: convert to SKB paged frag API.
Browse files Browse the repository at this point in the history
[ 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>
  • Loading branch information
Ian Campbell authored and David S. Miller committed Oct 5, 2011
1 parent 3e7307f commit 94d60a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/neterion/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,11 +923,11 @@ vxge_xmit(struct sk_buff *skb, struct net_device *dev)
if (!frag->size)
continue;

dma_pointer = (u64) pci_map_page(fifo->pdev, frag->page,
frag->page_offset, frag->size,
PCI_DMA_TODEVICE);
dma_pointer = (u64)skb_frag_dma_map(&fifo->pdev->dev, frag,
0, frag->size,
DMA_TO_DEVICE);

if (unlikely(pci_dma_mapping_error(fifo->pdev, dma_pointer)))
if (unlikely(dma_mapping_error(&fifo->pdev->dev, dma_pointer)))
goto _exit2;
vxge_debug_tx(VXGE_TRACE,
"%s: %s:%d frag = %d dma_pointer = 0x%llx",
Expand Down

0 comments on commit 94d60a7

Please sign in to comment.