Commit 5f5a8c75 authored by Yang Wei's avatar Yang Wei Committed by David S. Miller

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: default avatarYang Wei <yang.wei9@zte.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d270f67d
...@@ -764,7 +764,7 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id) ...@@ -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;
......
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