diff options
author | David S. Miller <davem@davemloft.net> | 2011-09-16 08:58:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-16 08:58:54 +0200 |
commit | 986eaa904129fc888c6c3882f6405a0055110e51 (patch) | |
tree | a3da29918fd82982703eab1e7ae07957a9e5c12c /drivers/net/ethernet/3com | |
parent | net: consolidate and fix ethtool_ops->get_settings calling (diff) | |
parent | greth: convert to SKB paged frag API. (diff) | |
download | linux-986eaa904129fc888c6c3882f6405a0055110e51.tar.xz linux-986eaa904129fc888c6c3882f6405a0055110e51.zip |
Merge branch 'master' of ../netdev-next/
Diffstat (limited to 'drivers/net/ethernet/3com')
-rw-r--r-- | drivers/net/ethernet/3com/3c59x.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c index 6e1f5959a654..9ca45dcba755 100644 --- a/drivers/net/ethernet/3com/3c59x.c +++ b/drivers/net/ethernet/3com/3c59x.c @@ -2179,9 +2179,10 @@ boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev) skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; vp->tx_ring[entry].frag[i+1].addr = - cpu_to_le32(pci_map_single(VORTEX_PCI(vp), - (void*)page_address(frag->page) + frag->page_offset, - frag->size, PCI_DMA_TODEVICE)); + cpu_to_le32(pci_map_single( + VORTEX_PCI(vp), + (void *)skb_frag_address(frag), + frag->size, PCI_DMA_TODEVICE)); if (i == skb_shinfo(skb)->nr_frags-1) vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(frag->size|LAST_FRAG); |