diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-03-21 14:06:32 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-26 00:17:43 -0400 |
commit | bab2bce7dcea9aaf9374b6c24001d6afcced4ca5 (patch) | |
tree | 07cd8982c9548337e24a26c566e20478284835da /drivers/net/ixgb/ixgb.h | |
parent | c3033b01d763aff572080db09ddcebed115b9cf5 (diff) |
ixgb: add explicit state checking
In order to remove the irq_sem code we need to implement strict
adapter state checking to prevent accidental double up or downs
or resets. This code is largely copied from e1000/e1000e.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb/ixgb.h')
-rw-r--r-- | drivers/net/ixgb/ixgb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h index 3d2e7217e9af..0078136643f3 100644 --- a/drivers/net/ixgb/ixgb.h +++ b/drivers/net/ixgb/ixgb.h | |||
@@ -195,6 +195,15 @@ struct ixgb_adapter { | |||
195 | struct ixgb_hw_stats stats; | 195 | struct ixgb_hw_stats stats; |
196 | uint32_t alloc_rx_buff_failed; | 196 | uint32_t alloc_rx_buff_failed; |
197 | boolean_t have_msi; | 197 | boolean_t have_msi; |
198 | unsigned long flags; | ||
199 | }; | ||
200 | |||
201 | enum ixgb_state_t { | ||
202 | /* TBD | ||
203 | __IXGB_TESTING, | ||
204 | __IXGB_RESETTING, | ||
205 | */ | ||
206 | __IXGB_DOWN | ||
198 | }; | 207 | }; |
199 | 208 | ||
200 | /* Exported from other modules */ | 209 | /* Exported from other modules */ |