diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-08-30 20:47:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-15 15:35:01 -0400 |
commit | 929f61896e194f45696ba52852ccbfd5edd04df1 (patch) | |
tree | 1fb856383c8bfba87abe5137077fed849f6ffce0 /drivers/net/ethernet/realtek/r8169.c | |
parent | da7ebfd76076b087ef7b47facfc0f2c137caa954 (diff) |
r8169: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Realtek linux nic maintainers <nic_swsd@realtek.com>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek/r8169.c')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 1cf8c3c1328d..835bbb534c5d 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c | |||
@@ -5027,7 +5027,7 @@ static int rtl8169_xmit_frags(struct rtl8169_private *tp, struct sk_buff *skb, | |||
5027 | 5027 | ||
5028 | txd = tp->TxDescArray + entry; | 5028 | txd = tp->TxDescArray + entry; |
5029 | len = frag->size; | 5029 | len = frag->size; |
5030 | addr = ((void *) page_address(frag->page)) + frag->page_offset; | 5030 | addr = skb_frag_address(frag); |
5031 | mapping = dma_map_single(d, addr, len, DMA_TO_DEVICE); | 5031 | mapping = dma_map_single(d, addr, len, DMA_TO_DEVICE); |
5032 | if (unlikely(dma_mapping_error(d, mapping))) { | 5032 | if (unlikely(dma_mapping_error(d, mapping))) { |
5033 | if (net_ratelimit()) | 5033 | if (net_ratelimit()) |