[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1550156800-4821-1-git-send-email-albin_yang@163.com>
Date: Thu, 14 Feb 2019 23:06:40 +0800
From: Yang Wei <albin_yang@....com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, ionut@...ula.org, yang.wei9@....com.cn,
albin_yang@....com
Subject: [PATCH net] net: adaptec: starfire: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
From: Yang Wei <yang.wei9@....com.cn>
dev_consume_skb_irq() should be called in intr_handler() when skb
xmit done. It makes drop profiles(dropwatch, perf) more friendly.
Signed-off-by: Yang Wei <yang.wei9@....com.cn>
---
drivers/net/ethernet/adaptec/starfire.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/adaptec/starfire.c b/drivers/net/ethernet/adaptec/starfire.c
index 097467f..816540e 100644
--- a/drivers/net/ethernet/adaptec/starfire.c
+++ b/drivers/net/ethernet/adaptec/starfire.c
@@ -1390,7 +1390,7 @@ static irqreturn_t intr_handler(int irq, void *dev_instance)
}
}
- dev_kfree_skb_irq(skb);
+ dev_consume_skb_irq(skb);
}
np->tx_done_q[np->tx_done].status = 0;
np->tx_done = (np->tx_done + 1) % DONE_Q_SIZE;
--
2.7.4
Powered by blists - more mailing lists