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

s2io: convert to SKB paged frag API.

Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8decf868
...@@ -4190,10 +4190,10 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -4190,10 +4190,10 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
if (!frag->size) if (!frag->size)
continue; continue;
txdp++; txdp++;
txdp->Buffer_Pointer = (u64)pci_map_page(sp->pdev, frag->page, txdp->Buffer_Pointer = (u64)skb_frag_dma_map(&sp->pdev->dev,
frag->page_offset, frag, 0,
frag->size, frag->size,
PCI_DMA_TODEVICE); PCI_DMA_TODEVICE);
txdp->Control_1 = TXD_BUFFER0_SIZE(frag->size); txdp->Control_1 = TXD_BUFFER0_SIZE(frag->size);
if (offload_type == SKB_GSO_UDP) if (offload_type == SKB_GSO_UDP)
txdp->Control_1 |= TXD_UFO_EN; txdp->Control_1 |= TXD_UFO_EN;
......
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