]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
acenic: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Mon, 29 Aug 2011 23:18:19 +0000 (23:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Aug 2011 21:57:59 +0000 (17:57 -0400)
Signed-off-by: Ian 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/alteon/acenic.c

index 1d6f2db794fd82b4de09c85654687ef0138d44a3..8794cf831bd0d7ab06392ef21ccc2b206ce1830c 100644 (file)
@@ -2485,9 +2485,9 @@ restart:
                        info = ap->skb->tx_skbuff + idx;
                        desc = ap->tx_ring + idx;
 
-                       mapping = pci_map_page(ap->pdev, frag->page,
-                                              frag->page_offset, frag->size,
-                                              PCI_DMA_TODEVICE);
+                       mapping = skb_frag_dma_map(&ap->pdev->dev, frag, 0,
+                                                  frag->size,
+                                                  PCI_DMA_TODEVICE);
 
                        flagsize = (frag->size << 16);
                        if (skb->ip_summed == CHECKSUM_PARTIAL)