From: Ian Campbell Date: Wed, 21 Sep 2011 21:53:15 +0000 (+0000) Subject: s2io: convert to SKB paged frag API. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f0d06d82f7ab821554f8761aaa47c3ad592cc441;p=linux-beck.git s2io: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Jon Mason Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index 840cbb25bdde..ef5b825a9a9c 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c @@ -4190,10 +4190,10 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev) if (!frag->size) continue; txdp++; - txdp->Buffer_Pointer = (u64)pci_map_page(sp->pdev, frag->page, - frag->page_offset, - frag->size, - PCI_DMA_TODEVICE); + txdp->Buffer_Pointer = (u64)skb_frag_dma_map(&sp->pdev->dev, + frag, 0, + frag->size, + PCI_DMA_TODEVICE); txdp->Control_1 = TXD_BUFFER0_SIZE(frag->size); if (offload_type == SKB_GSO_UDP) txdp->Control_1 |= TXD_UFO_EN;