aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-08-29 19:18:17 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-30 17:57:58 -0400
commit7b63e3a8ffde4daf50996eae2a0b541662da148c (patch)
tree45d716199f0b291f0631b871ae76c15d7930441d /drivers/net
parent3857e3ee2209b7289c434103e366f765ec82a22d (diff)
3c59x: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Steffen Klassert <klassert@mathematik.tu-chemnitz.de> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/3com/3c59x.c7
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)
2179 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; 2179 skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
2180 2180
2181 vp->tx_ring[entry].frag[i+1].addr = 2181 vp->tx_ring[entry].frag[i+1].addr =
2182 cpu_to_le32(pci_map_single(VORTEX_PCI(vp), 2182 cpu_to_le32(pci_map_single(
2183 (void*)page_address(frag->page) + frag->page_offset, 2183 VORTEX_PCI(vp),
2184 frag->size, PCI_DMA_TODEVICE)); 2184 (void *)skb_frag_address(frag),
2185 frag->size, PCI_DMA_TODEVICE));
2185 2186
2186 if (i == skb_shinfo(skb)->nr_frags-1) 2187 if (i == skb_shinfo(skb)->nr_frags-1)
2187 vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(frag->size|LAST_FRAG); 2188 vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(frag->size|LAST_FRAG);