projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
134b413
)
ns83820: convert to SKB paged frag API.
author
Ian Campbell
<Ian.Campbell@citrix.com>
Wed, 31 Aug 2011 00:47:00 +0000
(
00:47
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 15 Sep 2011 19:35:00 +0000
(15:35 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/ns83820.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/natsemi/ns83820.c
b/drivers/net/ethernet/natsemi/ns83820.c
index 1a1e20e97a23af42aea539c582432fa1b839a1e8..e0895e40f10adec747705c8460bf501c187d0b9b 100644
(file)
--- a/
drivers/net/ethernet/natsemi/ns83820.c
+++ b/
drivers/net/ethernet/natsemi/ns83820.c
@@
-1160,9
+1160,8
@@
again:
if (!nr_frags)
break;
- buf = pci_map_page(dev->pci_dev, frag->page,
- frag->page_offset,
- frag->size, PCI_DMA_TODEVICE);
+ buf = skb_frag_dma_map(&dev->pci_dev->dev, frag, 0,
+ frag->size, PCI_DMA_TODEVICE);
dprintk("frag: buf=%08Lx page=%08lx offset=%08lx\n",
(long long)buf, (long) page_to_pfn(frag->page),
frag->page_offset);