|
@@ -2177,10 +2177,10 @@ boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
|
|
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
|
|
|
|
|
|
vp->tx_ring[entry].frag[i+1].addr =
|
|
vp->tx_ring[entry].frag[i+1].addr =
|
|
- cpu_to_le32(pci_map_single(
|
|
|
|
- VORTEX_PCI(vp),
|
|
|
|
- (void *)skb_frag_address(frag),
|
|
|
|
- skb_frag_size(frag), PCI_DMA_TODEVICE));
|
|
|
|
|
|
+ cpu_to_le32(skb_frag_dma_map(
|
|
|
|
+ &VORTEX_PCI(vp)->dev,
|
|
|
|
+ frag,
|
|
|
|
+ frag->page_offset, frag->size, DMA_TO_DEVICE));
|
|
|
|
|
|
if (i == skb_shinfo(skb)->nr_frags-1)
|
|
if (i == skb_shinfo(skb)->nr_frags-1)
|
|
vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(skb_frag_size(frag)|LAST_FRAG);
|
|
vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(skb_frag_size(frag)|LAST_FRAG);
|