netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch 5/16 2.5] ixgb: Condition that determines when to quit polling mode includes work done in Tx path
@ 2004-10-15 13:54 Ganesh Venkatesan
  2004-10-15 17:04 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Ganesh Venkatesan @ 2004-10-15 13:54 UTC (permalink / raw)
  To: jgarzik@pobox.com; +Cc: netdev

diff -up net-drivers-2.6/drivers/net/ixgb/ixgb_main.c net-drivers-2.6/drivers/net/ixgb.new/ixgb_main.c
--- net-drivers-2.6/drivers/net/ixgb/ixgb_main.c	2004-10-05 15:50:18.000000000 -0700
+++ net-drivers-2.6/drivers/net/ixgb.new/ixgb_main.c	2004-10-05 17:55:48.000000000 -0700
@@ -1640,15 +1640,18 @@ static irqreturn_t ixgb_intr(int irq, vo
 {
 	struct ixgb_adapter *adapter = netdev->priv;
 	int work_to_do = min(*budget, netdev->quota);
+	int tx_cleaned;
 	int work_done = 0;
-
-	ixgb_clean_tx_irq(adapter);
+	
+	tx_cleaned = ixgb_clean_tx_irq(adapter);
 	ixgb_clean_rx_irq(adapter, &work_done, work_to_do);
 
 	*budget -= work_done;
 	netdev->quota -= work_done;
-
-	if (work_done < work_to_do || !netif_running(netdev)) {
+	
+	/* if no Rx and Tx cleanup work was done, exit the polling mode */
+	if(!tx_cleaned || (work_done < work_to_do) || 
+				!netif_running(netdev)) {
 		netif_rx_complete(netdev);
 		/* RAIDC will be automatically restarted by irq_enable */
 		ixgb_irq_enable(adapter);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch 5/16 2.5] ixgb: Condition that determines when to quit polling mode includes work done in Tx path
  2004-10-15 13:54 [Patch 5/16 2.5] ixgb: Condition that determines when to quit polling mode includes work done in Tx path Ganesh Venkatesan
@ 2004-10-15 17:04 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2004-10-15 17:04 UTC (permalink / raw)
  To: Ganesh Venkatesan; +Cc: netdev

patch applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-15 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 13:54 [Patch 5/16 2.5] ixgb: Condition that determines when to quit polling mode includes work done in Tx path Ganesh Venkatesan
2004-10-15 17:04 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).