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

ns83820: 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 134b413c
...@@ -1160,9 +1160,8 @@ static netdev_tx_t ns83820_hard_start_xmit(struct sk_buff *skb, ...@@ -1160,9 +1160,8 @@ static netdev_tx_t ns83820_hard_start_xmit(struct sk_buff *skb,
if (!nr_frags) if (!nr_frags)
break; break;
buf = pci_map_page(dev->pci_dev, frag->page, buf = skb_frag_dma_map(&dev->pci_dev->dev, frag, 0,
frag->page_offset, frag->size, PCI_DMA_TODEVICE);
frag->size, PCI_DMA_TODEVICE);
dprintk("frag: buf=%08Lx page=%08lx offset=%08lx\n", dprintk("frag: buf=%08Lx page=%08lx offset=%08lx\n",
(long long)buf, (long) page_to_pfn(frag->page), (long long)buf, (long) page_to_pfn(frag->page),
frag->page_offset); frag->page_offset);
......
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