netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] igb: force all queues to interrupt once every 2 seconds
@ 2008-08-26 11:25 Jeff Kirsher
  2008-08-26 11:25 ` [PATCH 2/5] igb: ethtool -d reads EICR which is incorrect as it is read on clear Jeff Kirsher
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jeff Kirsher @ 2008-08-26 11:25 UTC (permalink / raw)
  To: jeff; +Cc: netdev, davem, akpm, Jeff Kirsher, Alexander Duyck

From: Alexander Duyck <alexander.h.duyck@intel.com>

Set the EICS bit for each of the RX queues at least once every 2 seconds to
prevent the rx queues from stalling.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
---

 drivers/net/igb/igb_main.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 4b19abb..40a205e 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -2279,7 +2279,9 @@ static void igb_watchdog_task(struct work_struct *work)
 	struct igb_ring *tx_ring = adapter->tx_ring;
 	struct e1000_mac_info *mac = &adapter->hw.mac;
 	u32 link;
+	u32 eics = 0;
 	s32 ret_val;
+	int i;
 
 	if ((netif_carrier_ok(netdev)) &&
 	    (rd32(E1000_STATUS) & E1000_STATUS_LU))
@@ -2381,7 +2383,13 @@ link_up:
 	}
 
 	/* Cause software interrupt to ensure rx ring is cleaned */
-	wr32(E1000_ICS, E1000_ICS_RXDMT0);
+	if (adapter->msix_entries) {
+		for (i = 0; i < adapter->num_rx_queues; i++)
+			eics |= adapter->rx_ring[i].eims_value;
+		wr32(E1000_EICS, eics);
+	} else {
+		wr32(E1000_ICS, E1000_ICS_RXDMT0);
+	}
 
 	/* Force detection of hung controller every watchdog period */
 	tx_ring->detect_tx_hung = true;


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

end of thread, other threads:[~2008-09-03 14:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26 11:25 [PATCH 1/5] igb: force all queues to interrupt once every 2 seconds Jeff Kirsher
2008-08-26 11:25 ` [PATCH 2/5] igb: ethtool -d reads EICR which is incorrect as it is read on clear Jeff Kirsher
2008-08-26 11:25 ` [PATCH 3/5] igb: remove unneeded cleaned variable in clean_tx_irq path Jeff Kirsher
2008-09-03 14:09   ` Jeff Garzik
2008-08-26 11:25 ` [PATCH 4/5] igb: clean up a stray fake netdev code left in rx path Jeff Kirsher
2008-09-03 14:09   ` Jeff Garzik
2008-08-26 11:25 ` [PATCH 5/5] igb: fix setting the number of tx queues Jeff Kirsher
2008-08-27  9:18   ` 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).