summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/adaptec
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-09-22 01:53:19 +0400
committerDavid S. Miller <davem@davemloft.net>2011-09-23 00:04:15 +0400
commit0cd83cc020fdf9fcc56d9456d9978430f41873cf (patch)
treeb8f0e1103cf0a98e88d92ed89831bb8303284c82 /drivers/net/ethernet/adaptec
parent950a5a4fdbfbea90feda70bab3178eafecc64d0b (diff)
downloadlinux-0cd83cc020fdf9fcc56d9456d9978430f41873cf.tar.xz
starfire: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adaptec')
-rw-r--r--drivers/net/ethernet/adaptec/starfire.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/adaptec/starfire.c b/drivers/net/ethernet/adaptec/starfire.c
index df51fdd72353..d6b015598569 100644
--- a/drivers/net/ethernet/adaptec/starfire.c
+++ b/drivers/net/ethernet/adaptec/starfire.c
@@ -1259,7 +1259,10 @@ static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev)
skb_frag_t *this_frag = &skb_shinfo(skb)->frags[i - 1];
status |= this_frag->size;
np->tx_info[entry].mapping =
- pci_map_single(np->pci_dev, page_address(this_frag->page) + this_frag->page_offset, this_frag->size, PCI_DMA_TODEVICE);
+ pci_map_single(np->pci_dev,
+ skb_frag_address(this_frag),
+ this_frag->size,
+ PCI_DMA_TODEVICE);
}
np->tx_ring[entry].addr = cpu_to_dma(np->tx_info[entry].mapping);