tehuti: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 21 Sep 2011 21:53:23 +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: Alexander Indenbaum <baum@tehutinetworks.net>
Cc: Andy Gospodarek <andy@greyhouse.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tehuti/tehuti.c

index bc65aa8de4d0873a915df9ba8078a975c7a3494b..371ab7abd377ac971b9a7e43243f3366c953b43a 100644 (file)
@@ -1497,9 +1497,9 @@ bdx_tx_map_skb(struct bdx_priv *priv, struct sk_buff *skb,
 
                frag = &skb_shinfo(skb)->frags[i];
                db->wptr->len = frag->size;
-               db->wptr->addr.dma =
-                   pci_map_page(priv->pdev, frag->page, frag->page_offset,
-                                frag->size, PCI_DMA_TODEVICE);
+               db->wptr->addr.dma = skb_frag_dma_map(&priv->pdev->dev, frag,
+                                                     0, frag->size,
+                                                     PCI_DMA_TODEVICE);
 
                pbl++;
                pbl->len = CPU_CHIP_SWAP32(db->wptr->len);