diff options
author | Auke Kok <auke\-jan.h.kok@intel.com> | 2006-09-27 15:54:02 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-09-27 15:54:02 -0400 |
commit | 1314bbf3a3d911218fc153e14873e2e384d08084 (patch) | |
tree | 4b2517261087f6d1374fe84272dcf20cd184f701 /drivers/net/e1000/e1000.h | |
parent | 4f5f2317fbb3655edae21de3ada0f1692523eeef (diff) |
e1000: driver state fixes (race fix)
We were plagued by our interrupt handler posting a watchdog event which
could occur when our adapter was going down in case a late packet arrived
just before e1000_down() finished. This caused the watchdog timer to start
after the NIC was down and keep rescheduling it every N seconds. Once
the driver unloaded it would panic.
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e1000/e1000.h')
-rw-r--r-- | drivers/net/e1000/e1000.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h index a9501e7b8ef9..7ecce438d258 100644 --- a/drivers/net/e1000/e1000.h +++ b/drivers/net/e1000/e1000.h | |||
@@ -345,8 +345,9 @@ struct e1000_adapter { | |||
345 | }; | 345 | }; |
346 | 346 | ||
347 | enum e1000_state_t { | 347 | enum e1000_state_t { |
348 | __E1000_DRIVER_TESTING, | 348 | __E1000_TESTING, |
349 | __E1000_RESETTING, | 349 | __E1000_RESETTING, |
350 | __E1000_DOWN | ||
350 | }; | 351 | }; |
351 | 352 | ||
352 | #endif /* _E1000_H_ */ | 353 | #endif /* _E1000_H_ */ |