]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: don't try to stop queues if we've lost hw_addr
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 23 Jun 2016 20:54:01 +0000 (13:54 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 29 Aug 2016 08:31:03 +0000 (01:31 -0700)
commit7900b6bfbd90463df00cf348758a21607bd086c8
tree0a1479457310669dc920f2b1200ade41d8250e11
parent5820e75dd2079141dc4414fa2f3ae1c66b84e268
fm10k: don't try to stop queues if we've lost hw_addr

In the event of a surprise remove, we expect the driver to go down,
which includes calling .stop_hw(). However, this function will return an
error because the queues won't appear to cleanly disable. Prevent this
and avoid the unnecessary checks by just returning when
FM10K_REMOVED(hw->hw_addr) is true.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_common.c