Commit 4bb97cae authored by Ian Campbell's avatar Ian Campbell Committed by David S. Miller

pasemi: convert to SKB paged frag API.

Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bc516c8f
...@@ -1505,9 +1505,8 @@ static int pasemi_mac_start_tx(struct sk_buff *skb, struct net_device *dev) ...@@ -1505,9 +1505,8 @@ static int pasemi_mac_start_tx(struct sk_buff *skb, struct net_device *dev)
for (i = 0; i < nfrags; i++) { for (i = 0; i < nfrags; i++) {
skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
map[i+1] = pci_map_page(mac->dma_pdev, frag->page, map[i + 1] = skb_frag_dma_map(&mac->dma_pdev->dev, frag, 0,
frag->page_offset, frag->size, frag->size, PCI_DMA_TODEVICE);
PCI_DMA_TODEVICE);
map_size[i+1] = frag->size; map_size[i+1] = frag->size;
if (pci_dma_mapping_error(mac->dma_pdev, map[i+1])) { if (pci_dma_mapping_error(mac->dma_pdev, map[i+1])) {
nfrags = i; nfrags = i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment