stmmac: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 21 Sep 2011 21:53:20 +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: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index d0fbc54..c0ee6b6 100644 (file)
@@ -1113,9 +1113,8 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
                desc = priv->dma_tx + entry;
 
                TX_DBG("\t[entry %d] segment len: %d\n", entry, len);
-               desc->des2 = dma_map_page(priv->device, frag->page,
-                                         frag->page_offset,
-                                         len, DMA_TO_DEVICE);
+               desc->des2 = skb_frag_dma_map(priv->device, frag, 0, len,
+                                             DMA_TO_DEVICE);
                priv->tx_skbuff[entry] = NULL;
                priv->hw->desc->prepare_tx_desc(desc, 0, len, csum_insertion);
                wmb();