et131x: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Cc: Mark Einon <mark.einon@gmail.com> Cc: devel@driverdev.osuosl.org Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
01c68026e4
commit
bf3f1a6081
|
@ -519,12 +519,12 @@ static int nic_send_packet(struct et131x_adapter *etdev, struct tcb *tcb)
|
||||||
* returned by pci_map_page() is always 32-bit
|
* returned by pci_map_page() is always 32-bit
|
||||||
* addressable (as defined by the pci/dma subsystem)
|
* addressable (as defined by the pci/dma subsystem)
|
||||||
*/
|
*/
|
||||||
desc[frag++].addr_lo =
|
desc[frag++].addr_lo = skb_frag_dma_map(
|
||||||
pci_map_page(etdev->pdev,
|
&etdev->pdev->dev,
|
||||||
frags[i - 1].page,
|
&frags[i - 1],
|
||||||
frags[i - 1].page_offset,
|
0,
|
||||||
frags[i - 1].size,
|
frags[i - 1].size,
|
||||||
PCI_DMA_TODEVICE);
|
PCI_DMA_TODEVICE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue