iavf: in iavf_down, don't queue watchdog_task if comms failed
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 27 Oct 2023 17:59:36 +0000 (10:59 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Oct 2023 22:35:49 +0000 (15:35 -0700)
commit6a0d989d3cdb1b7653ca264ff41f4a4517a79500
treefde013dcf2013392c13b33c2d2db9f86e46819f9
parent5902ee6dc651f4bb536fbc19e654edc7b6d711d2
iavf: in iavf_down, don't queue watchdog_task if comms failed

The reason for queueing watchdog_task is to have it process the
aq_required flags that are being set here. If comms failed, there's
nothing to do, so return early.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20231027175941.1340255-4-jacob.e.keller@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/iavf/iavf_main.c