Commit 4bc68347 authored by Ian Campbell's avatar Ian Campbell Committed by David S. Miller

sunhme: convert to SKB paged frag API.

Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4fee78b4
...@@ -2309,9 +2309,8 @@ static netdev_tx_t happy_meal_start_xmit(struct sk_buff *skb, ...@@ -2309,9 +2309,8 @@ static netdev_tx_t happy_meal_start_xmit(struct sk_buff *skb,
u32 len, mapping, this_txflags; u32 len, mapping, this_txflags;
len = this_frag->size; len = this_frag->size;
mapping = dma_map_page(hp->dma_dev, this_frag->page, mapping = skb_frag_dma_map(hp->dma_dev, this_frag,
this_frag->page_offset, len, 0, len, DMA_TO_DEVICE);
DMA_TO_DEVICE);
this_txflags = tx_flags; this_txflags = tx_flags;
if (frag == skb_shinfo(skb)->nr_frags - 1) if (frag == skb_shinfo(skb)->nr_frags - 1)
this_txflags |= TXFLAG_EOP; this_txflags |= TXFLAG_EOP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment