From: Ian Campbell Date: Mon, 10 Oct 2011 01:11:39 +0000 (+0000) Subject: emac: convert to SKB paged frag API. X-Git-Tag: firefly_0821_release~3680^2~4273^2~107 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f8f114c26452059e03fb970141e5795e08015217;p=firefly-linux-kernel-4.4.55.git emac: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index a573df1fafb6..6b3a033d9de5 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -1458,8 +1458,8 @@ static int emac_start_xmit_sg(struct sk_buff *skb, struct net_device *ndev) if (unlikely(dev->tx_cnt + mal_tx_chunks(len) >= NUM_TX_BUFF)) goto undo_frame; - pd = dma_map_page(&dev->ofdev->dev, frag->page, frag->page_offset, len, - DMA_TO_DEVICE); + pd = skb_frag_dma_map(&dev->ofdev->dev, frag, 0, len, + DMA_TO_DEVICE); slot = emac_xmit_split(dev, slot, pd, len, i == nr_frags - 1, ctrl);