diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-03-21 11:06:32 -0700 |
---|---|---|
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) | |
download | blackbird-op-linux-bab2bce7dcea9aaf9374b6c24001d6afcced4ca5.tar.gz blackbird-op-linux-bab2bce7dcea9aaf9374b6c24001d6afcced4ca5.zip |
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 { struct ixgb_hw_stats stats; uint32_t alloc_rx_buff_failed; boolean_t have_msi; + unsigned long flags; +}; + +enum ixgb_state_t { + /* TBD + __IXGB_TESTING, + __IXGB_RESETTING, + */ + __IXGB_DOWN }; /* Exported from other modules */ |