mirror of https://gitee.com/openkylin/linux.git
ns83820: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
134b413ca3
commit
bc516c8f9d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue