Commit c4c8d579 authored by Ian Campbell's avatar Ian Campbell Committed by David S. Miller

acenic: convert to SKB paged frag API.

Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
Cc: Jes Sorensen <jes@trained-monkey.org>
Cc: linux-acenic@sunsite.dk
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent deb8a069
...@@ -2485,9 +2485,9 @@ static netdev_tx_t ace_start_xmit(struct sk_buff *skb, ...@@ -2485,9 +2485,9 @@ static netdev_tx_t ace_start_xmit(struct sk_buff *skb,
info = ap->skb->tx_skbuff + idx; info = ap->skb->tx_skbuff + idx;
desc = ap->tx_ring + idx; desc = ap->tx_ring + idx;
mapping = pci_map_page(ap->pdev, frag->page, mapping = skb_frag_dma_map(&ap->pdev->dev, frag, 0,
frag->page_offset, frag->size, frag->size,
PCI_DMA_TODEVICE); PCI_DMA_TODEVICE);
flagsize = (frag->size << 16); flagsize = (frag->size << 16);
if (skb->ip_summed == CHECKSUM_PARTIAL) if (skb->ip_summed == CHECKSUM_PARTIAL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment