[PATCH 52/75] sungem: convert to SKB paged frag API.

Ian Campbell ian.campbell at citrix.com
Fri Aug 19 23:27:24 EST 2011


Signed-off-by: Ian Campbell <ian.campbell at citrix.com>
Cc: Grant Likely <grant.likely at secretlab.ca>
Cc: "David S. Miller" <davem at davemloft.net>
Cc: Jiri Kosina <jkosina at suse.cz>
Cc: Joe Perches <joe at perches.com>
Cc: David Decotigny <decot at google.com>
Cc: "Michał Mirosław" <mirq-linux at rere.qmqm.pl>
Cc: netdev at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: devicetree-discuss at lists.ozlabs.org
---
 drivers/net/sungem.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index ade35dd..39189bf 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -1071,10 +1071,8 @@ static netdev_tx_t gem_start_xmit(struct sk_buff *skb,
 			u64 this_ctrl;
 
 			len = this_frag->size;
-			mapping = pci_map_page(gp->pdev,
-					       this_frag->page,
-					       this_frag->page_offset,
-					       len, PCI_DMA_TODEVICE);
+			mapping = skb_frag_dma_map(&gp->pdev->dev, this_frag,
+						   0, len, PCI_DMA_TODEVICE);
 			this_ctrl = ctrl;
 			if (frag == skb_shinfo(skb)->nr_frags - 1)
 				this_ctrl |= TXDCTRL_EOF;
-- 
1.7.2.5



More information about the devicetree-discuss mailing list