iavf: Add __IAVF_INIT_FAILED state
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Thu, 19 Aug 2021 08:47:49 +0000 (08:47 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Oct 2021 21:07:24 +0000 (14:07 -0700)
commit59756ad6948be91d66867ce458083b820c59b8ba
treee3decb6d3afe2e204ff5d26e79e2be7479a12103
parent45eebd62999d37d13568723524b99d828e0ce22c
iavf: Add __IAVF_INIT_FAILED state

This commit adds a new state, __IAVF_INIT_FAILED to the state machine.
From now on initialization functions report errors not by returning an
error value, but by changing the state to indicate that something went
wrong.

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