OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b63e3a
)
8139cp: convert to SKB paged frag API.
author
Ian Campbell
<Ian.Campbell@citrix.com>
Mon, 29 Aug 2011 23:18:18 +0000
(23:18 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 30 Aug 2011 21:57:59 +0000
(17:57 -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/realtek/8139cp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/realtek/8139cp.c
b/drivers/net/ethernet/realtek/8139cp.c
index
5d2d1b8
..
c77d5af
100644
(file)
--- a/
drivers/net/ethernet/realtek/8139cp.c
+++ b/
drivers/net/ethernet/realtek/8139cp.c
@@
-784,8
+784,7
@@
static netdev_tx_t cp_start_xmit (struct sk_buff *skb,
len = this_frag->size;
mapping = dma_map_single(&cp->pdev->dev,
- ((void *) page_address(this_frag->page) +
- this_frag->page_offset),
+ skb_frag_address(this_frag),
len, PCI_DMA_TODEVICE);
eor = (entry == (CP_TX_RING_SIZE - 1)) ? RingEnd : 0;