mirror of https://gitee.com/openkylin/linux.git
net: myri10ge: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in myri10ge_tx_done() 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>
This commit is contained in:
parent
fc67ade130
commit
5fbc136b48
|
@ -1408,7 +1408,7 @@ myri10ge_tx_done(struct myri10ge_slice_state *ss, int mcp_index)
|
|||
if (skb) {
|
||||
ss->stats.tx_bytes += skb->len;
|
||||
ss->stats.tx_packets++;
|
||||
dev_kfree_skb_irq(skb);
|
||||
dev_consume_skb_irq(skb);
|
||||
if (len)
|
||||
pci_unmap_single(pdev,
|
||||
dma_unmap_addr(&tx->info[idx],
|
||||
|
|
Loading…
Reference in New Issue