summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/alteon
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-08-29 23:18:19 +0000
committerDavid S. Miller <davem@davemloft.net>2011-08-30 17:57:59 -0400
commitc4c8d5796ce54e96885e227931986996b343a1d0 (patch)
tree36d43252b4896b45afff0cf9d8e84746f6201861 /drivers/net/ethernet/alteon
parentdeb8a069e39b272c0a37bfa7a5f52d49600963a4 (diff)
downloadlinux-c4c8d5796ce54e96885e227931986996b343a1d0.tar.bz2
acenic: convert to SKB paged frag API.
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>
Diffstat (limited to 'drivers/net/ethernet/alteon')
-rw-r--r--drivers/net/ethernet/alteon/acenic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/alteon/acenic.c b/drivers/net/ethernet/alteon/acenic.c
index 1d6f2db794fd..8794cf831bd0 100644
--- a/drivers/net/ethernet/alteon/acenic.c
+++ b/drivers/net/ethernet/alteon/acenic.c
@@ -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)