提交 bc516c8f 编写于 作者: I Ian Campbell 提交者: David S. Miller

ns83820: convert to SKB paged frag API.

Signed-off-by: NIan Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册