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:
618c4a0
)
emac: convert to SKB paged frag API.
author
Ian Campbell
<Ian.Campbell@citrix.com>
Mon, 10 Oct 2011 01:11:39 +0000
(
01:11
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 10 Oct 2011 19:19:13 +0000
(15:19 -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/ibm/emac/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ibm/emac/core.c
b/drivers/net/ethernet/ibm/emac/core.c
index a573df1fafb66d67363befb04ec4d8abb2c8cfc4..6b3a033d9de50daa70513ba4129b46d721c588fc 100644
(file)
--- a/
drivers/net/ethernet/ibm/emac/core.c
+++ b/
drivers/net/ethernet/ibm/emac/core.c
@@
-1458,8
+1458,8
@@
static int emac_start_xmit_sg(struct sk_buff *skb, struct net_device *ndev)
if (unlikely(dev->tx_cnt + mal_tx_chunks(len) >= NUM_TX_BUFF))
goto undo_frame;
- pd =
dma_map_page(&dev->ofdev->dev, frag->page, frag->page_offset
, len,
- DMA_TO_DEVICE);
+ pd =
skb_frag_dma_map(&dev->ofdev->dev, frag, 0
, len,
+
DMA_TO_DEVICE);
slot = emac_xmit_split(dev, slot, pd, len, i == nr_frags - 1,
ctrl);