mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 09:11:49 +00:00
qlcnic: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Cc: Sony Chacko <sony.chacko@qlogic.com> Cc: linux-driver@qlogic.com Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2af830e591
commit
e0ee9b98d5
@ -2135,8 +2135,8 @@ qlcnic_map_tx_skb(struct pci_dev *pdev,
|
||||
frag = &skb_shinfo(skb)->frags[i];
|
||||
nf = &pbuf->frag_array[i+1];
|
||||
|
||||
map = pci_map_page(pdev, frag->page, frag->page_offset,
|
||||
frag->size, PCI_DMA_TODEVICE);
|
||||
map = skb_frag_dma_map(&pdev->dev, frag, 0, frag->size,
|
||||
PCI_DMA_TODEVICE);
|
||||
if (pci_dma_mapping_error(pdev, map))
|
||||
goto unwind;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user