starfire: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 21 Sep 2011 21:53:19 +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: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/adaptec/starfire.c

index df51fdd7235371d246de7109af703089c6a2cd77..d6b0155985697a98062c68c0f1796e254c195dcd 100644 (file)
@@ -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);