From: Ian Campbell Date: Wed, 31 Aug 2011 00:46:58 +0000 (+0000) Subject: netxen: convert to SKB paged frag API. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e859ce4c64dd124ec4e2da31159a89e33e7ed7fc;p=openwrt%2Fstaging%2Fblogic.git netxen: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Sony Chacko Cc: Rajesh Borundia Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c index de18e4753b64..694130ebc75b 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c @@ -1844,8 +1844,8 @@ netxen_map_tx_skb(struct pci_dev *pdev, frag = &skb_shinfo(skb)->frags[i]; nf = &pbuf->frag_array[i+1]; - map = pci_map_page(pdev, frag->page, frag->page_offset, - frag->size, PCI_DMA_TODEVICE); + map = skb_frag_dma_map(&pdev->dev, frag, 0, frag->size, + PCI_DMA_TODEVICE); if (pci_dma_mapping_error(pdev, map)) goto unwind;