ixgbevf: Indicate removal state explicitly
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 4 Mar 2014 03:02:13 +0000 (03:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 00:17:24 +0000 (17:17 -0700)
commit2e7cfbdde8412a95ea4b003a68c2737434f543bb
treef3bbc071b98324b0f88599bf22c8b4149a19f2a0
parented19231c760a5103d75d285ca5a5ba4177ec09eb
ixgbevf: Indicate removal state explicitly

Add a bit, __IXGBEVF_REMOVING, to indicate that the module is being
removed. The __IXGBEVF_DOWN bit had been overloaded for this purpose,
but that leads to trouble. A few places now check both __IXGBEVF_DOWN
and __IXGBEVF_REMOVING.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c