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

index 11fd299f5b990746c88362e3910405713cf7b71f..2bfa1715fe233730cb808e5db819807f01903af2 100644 (file)
@@ -1071,10 +1071,8 @@ static netdev_tx_t gem_start_xmit(struct sk_buff *skb,
                        u64 this_ctrl;
 
                        len = this_frag->size;
-                       mapping = pci_map_page(gp->pdev,
-                                              this_frag->page,
-                                              this_frag->page_offset,
-                                              len, PCI_DMA_TODEVICE);
+                       mapping = skb_frag_dma_map(&gp->pdev->dev, this_frag,
+                                                  0, len, PCI_DMA_TODEVICE);
                        this_ctrl = ctrl;
                        if (frag == skb_shinfo(skb)->nr_frags - 1)
                                this_ctrl |= TXDCTRL_EOF;