s2io: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 21 Sep 2011 21:53:15 +0000 (21:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2011 20:04:15 +0000 (16:04 -0400)
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>
drivers/net/ethernet/neterion/s2io.c

index 840cbb25bddec20f3ec5a2eec8bc9eaf4d7f9388..ef5b825a9a9cf2f7082e059f56ee5bbf1f400c33 100644 (file)
@@ -4190,10 +4190,10 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
                if (!frag->size)
                        continue;
                txdp++;
-               txdp->Buffer_Pointer = (u64)pci_map_page(sp->pdev, frag->page,
-                                                        frag->page_offset,
-                                                        frag->size,
-                                                        PCI_DMA_TODEVICE);
+               txdp->Buffer_Pointer = (u64)skb_frag_dma_map(&sp->pdev->dev,
+                                                            frag, 0,
+                                                            frag->size,
+                                                            PCI_DMA_TODEVICE);
                txdp->Control_1 = TXD_BUFFER0_SIZE(frag->size);
                if (offload_type == SKB_GSO_UDP)
                        txdp->Control_1 |= TXD_UFO_EN;