iavf: do not override the adapter state in the watchdog task (again)
authorStefan Assmann <sassmann@kpanic.de>
Wed, 1 Dec 2021 08:14:34 +0000 (09:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:53 +0000 (19:12 +0100)
commitd784113217f95df777e32847d0f206d25325b334
tree2b4ea6c2870c4be7466d41f06f4274b4d7bc2133
parentd61f3737c5593697af3c19d4739be8b9ed20bde1
iavf: do not override the adapter state in the watchdog task (again)

commit fe523d7c9a8332855376ad5eb1aa301091129ba4 upstream.

The watchdog task incorrectly changes the state to __IAVF_RESETTING,
instead of letting the reset task take care of that. This was already
resolved by commit 22c8fd71d3a5 ("iavf: do not override the adapter
state in the watchdog task") but the problem was reintroduced by the
recent code refactoring in commit 45eebd62999d ("iavf: Refactor iavf
state machine tracking").

Fixes: 45eebd62999d ("iavf: Refactor iavf state machine tracking")
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/iavf/iavf_main.c