From: Ian Campbell Date: Wed, 21 Sep 2011 21:53:17 +0000 (+0000) Subject: skge: convert to SKB paged frag API. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=516733c2bbb76404faa201e1595361be6ab58119;p=linux-beck.git skge: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Stephen Hemminger Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index 34622b038094..88e5856e06db 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c @@ -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;