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)
commit5f45c83024c49f71e50cf8156b165f11d2ab35a9
tree0a1479457310669dc920f2b1200ade41d8250e11
parent18095937cb1c66b8ff944de02cf04d1497008352
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
This page took 0.02656 seconds and 5 git commands to generate.