]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Refactor iavf state machine tracking
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Thu, 19 Aug 2021 08:47:40 +0000 (08:47 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Oct 2021 21:07:16 +0000 (14:07 -0700)
commit5e34a07e771d07187c17b3544a60273ef8aff8b0
tree6aafb49ab1fc39e92515dec1516cbdc0555b72b4
parentf5e4f69b966693c0af0908da584958e192c41264
iavf: Refactor iavf state machine tracking

Replace state changes of iavf state machine
with a method that also tracks the previous
state the machine was on.

This change is required for further work with
refactoring init and watchdog state machines.

Tracking of previous state would help us
recover iavf after failure has occurred.

Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c