]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Indicate removal state explicitly
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 15 Jan 2014 02:53:11 +0000 (18:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 02:59:17 +0000 (18:59 -0800)
commitbf4360a6d9423e04d4ac0cad8ff947f7c2a7e851
treea3e170fa31c9397af6a228f26ee25c6bd09caccf
parentc355beec7c15e83da398ca594a4ef2fd6d1debdd
ixgbe: Indicate removal state explicitly

Add a bit, __IXGBE_REMOVING, to indicate that the module is being
removed. The __IXGBE_DOWN bit had been overloaded for this purpose,
but that leads to trouble. A few places now check both __IXGBE_DOWN
and __IXGBE_REMOVE. Notably, setting either bit will prevent service
task execution.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c