mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
8139cp: 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
7b63e3a8ff
commit
deb8a069e3
@ -784,8 +784,7 @@ static netdev_tx_t cp_start_xmit (struct sk_buff *skb,
|
||||
|
||||
len = this_frag->size;
|
||||
mapping = dma_map_single(&cp->pdev->dev,
|
||||
((void *) page_address(this_frag->page) +
|
||||
this_frag->page_offset),
|
||||
skb_frag_address(this_frag),
|
||||
len, PCI_DMA_TODEVICE);
|
||||
eor = (entry == (CP_TX_RING_SIZE - 1)) ? RingEnd : 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user