ixgb: add explicit state checking
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 21 Mar 2008 18:06:32 +0000 (11:06 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 26 Mar 2008 04:17:43 +0000 (00:17 -0400)
commitbab2bce7dcea9aaf9374b6c24001d6afcced4ca5
tree07cd8982c9548337e24a26c566e20478284835da
parentc3033b01d763aff572080db09ddcebed115b9cf5
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>
drivers/net/ixgb/ixgb.h
drivers/net/ixgb/ixgb_main.c