* [net-2.6 PATCH] e1000: fix bug with shared interrupt during reset
@ 2009-01-27 23:27 Jeff Kirsher
2009-01-28 0:42 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Kirsher @ 2009-01-27 23:27 UTC (permalink / raw)
To: davem; +Cc: netdev, jeff, Jesse Brandeburg
From: Jesse Brandeburg <jesse.brandeburg@intel.com>
A nasty bug was found where an MTU change (or anything else that caused a
reset) could race with the interrupt code. The interrupt code was entered
by a shared interrupt during the MTU change.
This change prevents the interrupt code from running while the driver is in
the middle of its reset path.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
---
drivers/net/e1000/e1000_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 26474c9..c986978 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -31,7 +31,7 @@
char e1000_driver_name[] = "e1000";
static char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver";
-#define DRV_VERSION "7.3.20-k3-NAPI"
+#define DRV_VERSION "7.3.21-k3-NAPI"
const char e1000_driver_version[] = DRV_VERSION;
static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation.";
@@ -3712,7 +3712,7 @@ static irqreturn_t e1000_intr(int irq, void *data)
struct e1000_hw *hw = &adapter->hw;
u32 rctl, icr = er32(ICR);
- if (unlikely(!icr))
+ if (unlikely((!icr) || test_bit(__E1000_RESETTING, &adapter->flags)))
return IRQ_NONE; /* Not our interrupt */
/* IMS will not auto-mask if INT_ASSERTED is not set, and if it is
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-2.6 PATCH] e1000: fix bug with shared interrupt during reset
2009-01-27 23:27 [net-2.6 PATCH] e1000: fix bug with shared interrupt during reset Jeff Kirsher
@ 2009-01-28 0:42 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-01-28 0:42 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, jeff, jesse.brandeburg
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 27 Jan 2009 15:27:16 -0800
> A nasty bug was found where an MTU change (or anything else that caused a
> reset) could race with the interrupt code. The interrupt code was entered
> by a shared interrupt during the MTU change.
>
> This change prevents the interrupt code from running while the driver is in
> the middle of its reset path.
>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Applied, thanks everyone.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-28 0:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27 23:27 [net-2.6 PATCH] e1000: fix bug with shared interrupt during reset Jeff Kirsher
2009-01-28 0:42 ` David Miller
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).