Skip to content

Commit

Permalink
net: via-velocity: replace dev_kfree_skb_irq by dev_consume_skb_irq f…
Browse files Browse the repository at this point in the history
…or drop profiles

dev_consume_skb_irq() should be called in velocity_free_tx_buf()
when skb xmit done. It makes drop profiles(dropwatch, perf) more
friendly.

Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yang Wei authored and David S. Miller committed Feb 7, 2019
1 parent f4ad1a6 commit e0cbbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/via/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ static void velocity_free_tx_buf(struct velocity_info *vptr,
dma_unmap_single(vptr->dev, tdinfo->skb_dma[i],
le16_to_cpu(pktlen), DMA_TO_DEVICE);
}
dev_kfree_skb_irq(skb);
dev_consume_skb_irq(skb);
tdinfo->skb = NULL;
}

Expand Down

0 comments on commit e0cbbc6

Please sign in to comment.