mirror of https://gitee.com/openkylin/linux.git
net: apple: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in mace_interrupt() 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
d270f67d32
commit
5f5a8c75da
|
@ -764,7 +764,7 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id)
|
||||||
dev->stats.tx_bytes += mp->tx_bufs[i]->len;
|
dev->stats.tx_bytes += mp->tx_bufs[i]->len;
|
||||||
++dev->stats.tx_packets;
|
++dev->stats.tx_packets;
|
||||||
}
|
}
|
||||||
dev_kfree_skb_irq(mp->tx_bufs[i]);
|
dev_consume_skb_irq(mp->tx_bufs[i]);
|
||||||
--mp->tx_active;
|
--mp->tx_active;
|
||||||
if (++i >= N_TX_RING)
|
if (++i >= N_TX_RING)
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
Loading…
Reference in New Issue