]> 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)
commit7e658751ba6e495db1947c9bb6969ca3888991b2
tree6aafb49ab1fc39e92515dec1516cbdc0555b72b4
parentfc8c8e74d682ad26b35e584772f3be6211fed67a
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