From: Ian Campbell Date: Wed, 21 Sep 2011 21:53:23 +0000 (+0000) Subject: tehuti: convert to SKB paged frag API. X-Git-Tag: MMI-PSA29.97-13-9~18194^2~234 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4811086b733cd9988fb17ad471357bdd5a37a01;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tehuti: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Alexander Indenbaum Cc: Andy Gospodarek Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index bc65aa8de4d0..371ab7abd377 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c @@ -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);