netxen: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 31 Aug 2011 00:46:58 +0000 (00:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:34:59 +0000 (15:34 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Sony Chacko <sony.chacko@qlogic.com>
Cc: Rajesh Borundia <rajesh.borundia@qlogic.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c

index de18e47..694130e 100644 (file)
@@ -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;