mv643xx: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 31 Aug 2011 00:46:57 +0000 (00:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:34:59 +0000 (15:34 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c

index 1e2c9f0..7325737 100644 (file)
@@ -752,10 +752,10 @@ static void txq_submit_frag_skb(struct tx_queue *txq, struct sk_buff *skb)
 
                desc->l4i_chk = 0;
                desc->byte_cnt = this_frag->size;
-               desc->buf_ptr = dma_map_page(mp->dev->dev.parent,
-                                            this_frag->page,
-                                            this_frag->page_offset,
-                                            this_frag->size, DMA_TO_DEVICE);
+               desc->buf_ptr = skb_frag_dma_map(mp->dev->dev.parent,
+                                                this_frag, 0,
+                                                this_frag->size,
+                                                DMA_TO_DEVICE);
        }
 }