]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:35 +0000 (22:04 -0800)
commite6a196f71f979cac2a2690161507bd5e6a7485b4
treea623510af5b9a04153880d8031e77f4619acdabf
parent43a4ee3e6a74c2789e7abcccec11f96f7d39f05c
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>
Orabug: 25394529
(cherry picked from commit 5f45c83024c49f71e50cf8156b165f11d2ab35a9)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_common.c