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

sungem: 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 f722380d
...@@ -1071,10 +1071,8 @@ static netdev_tx_t gem_start_xmit(struct sk_buff *skb, ...@@ -1071,10 +1071,8 @@ static netdev_tx_t gem_start_xmit(struct sk_buff *skb,
u64 this_ctrl; u64 this_ctrl;
len = this_frag->size; len = this_frag->size;
mapping = pci_map_page(gp->pdev, mapping = skb_frag_dma_map(&gp->pdev->dev, this_frag,
this_frag->page, 0, len, PCI_DMA_TODEVICE);
this_frag->page_offset,
len, PCI_DMA_TODEVICE);
this_ctrl = ctrl; this_ctrl = ctrl;
if (frag == skb_shinfo(skb)->nr_frags - 1) if (frag == skb_shinfo(skb)->nr_frags - 1)
this_ctrl |= TXDCTRL_EOF; this_ctrl |= TXDCTRL_EOF;
......
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