skge: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 21 Sep 2011 21:53:17 +0000 (21:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2011 20:04:15 +0000 (16:04 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/skge.c

index 34622b0380946ad9c710c643b595db499a7ab436..88e5856e06db7cbc3a2b4a64465c7a84bde4a25f 100644 (file)
@@ -2758,8 +2758,8 @@ static netdev_tx_t skge_xmit_frame(struct sk_buff *skb,
                for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
                        skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
 
-                       map = pci_map_page(hw->pdev, frag->page, frag->page_offset,
-                                          frag->size, PCI_DMA_TODEVICE);
+                       map = skb_frag_dma_map(&hw->pdev->dev, frag, 0,
+                                              frag->size, PCI_DMA_TODEVICE);
 
                        e = e->next;
                        e->skb = skb;