forked from luck/tmp_suning_uos_patched
qla3xxx: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Ron Mercer <ron.mercer@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
8d36bb0de7
commit
2af830e591
@ -2388,9 +2388,8 @@ static int ql_send_map(struct ql3_adapter *qdev,
|
||||
seg++;
|
||||
}
|
||||
|
||||
map = pci_map_page(qdev->pdev, frag->page,
|
||||
frag->page_offset, frag->size,
|
||||
PCI_DMA_TODEVICE);
|
||||
map = skb_frag_dma_map(&qdev->pdev->dev, frag, 0, frag->size,
|
||||
PCI_DMA_TODEVICE);
|
||||
|
||||
err = pci_dma_mapping_error(qdev->pdev, map);
|
||||
if (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user