diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-09-21 17:53:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-22 16:04:15 -0400 |
commit | f0d06d82f7ab821554f8761aaa47c3ad592cc441 (patch) | |
tree | 226caa0b9ce77104d231ff1d2f79de89f881e0cc /drivers/net/ethernet/neterion | |
parent | 8decf868790b48a727d7e7ca164f2bcd3c1389c0 (diff) |
s2io: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
-rw-r--r-- | drivers/net/ethernet/neterion/s2io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index 840cbb25bdde..ef5b825a9a9c 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c | |||
@@ -4190,10 +4190,10 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev) | |||
4190 | if (!frag->size) | 4190 | if (!frag->size) |
4191 | continue; | 4191 | continue; |
4192 | txdp++; | 4192 | txdp++; |
4193 | txdp->Buffer_Pointer = (u64)pci_map_page(sp->pdev, frag->page, | 4193 | txdp->Buffer_Pointer = (u64)skb_frag_dma_map(&sp->pdev->dev, |
4194 | frag->page_offset, | 4194 | frag, 0, |
4195 | frag->size, | 4195 | frag->size, |
4196 | PCI_DMA_TODEVICE); | 4196 | PCI_DMA_TODEVICE); |
4197 | txdp->Control_1 = TXD_BUFFER0_SIZE(frag->size); | 4197 | txdp->Control_1 = TXD_BUFFER0_SIZE(frag->size); |
4198 | if (offload_type == SKB_GSO_UDP) | 4198 | if (offload_type == SKB_GSO_UDP) |
4199 | txdp->Control_1 |= TXD_UFO_EN; | 4199 | txdp->Control_1 |= TXD_UFO_EN; |