mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-15 06:00:41 +00:00
tehuti: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Alexander Indenbaum <baum@tehutinetworks.net> Cc: Andy Gospodarek <andy@greyhouse.net> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4bc683472b
commit
e4811086b7
@ -1497,9 +1497,9 @@ bdx_tx_map_skb(struct bdx_priv *priv, struct sk_buff *skb,
|
||||
|
||||
frag = &skb_shinfo(skb)->frags[i];
|
||||
db->wptr->len = frag->size;
|
||||
db->wptr->addr.dma =
|
||||
pci_map_page(priv->pdev, frag->page, frag->page_offset,
|
||||
frag->size, PCI_DMA_TODEVICE);
|
||||
db->wptr->addr.dma = skb_frag_dma_map(&priv->pdev->dev, frag,
|
||||
0, frag->size,
|
||||
PCI_DMA_TODEVICE);
|
||||
|
||||
pbl++;
|
||||
pbl->len = CPU_CHIP_SWAP32(db->wptr->len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user