net: i825xx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
authorYang Wei <albin_yang@163.com>
Mon, 28 Jan 2019 14:42:25 +0000 (22:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2019 18:53:28 +0000 (10:53 -0800)
dev_consume_skb_irq() should be called in i596_interrupt() when skb
xmit done. It makes drop profiles(dropwatch, perf) more friendly.

Signed-off-by: Yang Wei <albin_yang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/i825xx/82596.c

index d719668..9292975 100644 (file)
@@ -1310,7 +1310,7 @@ static irqreturn_t i596_interrupt(int irq, void *dev_id)
                                                dev->stats.tx_aborted_errors++;
                                }
 
-                               dev_kfree_skb_irq(skb);
+                               dev_consume_skb_irq(skb);
 
                                tx_cmd->cmd.command = 0; /* Mark free */
                                break;