]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4abd24473043685436042fe6fb1578da402ad56f
treee3decb6d3afe2e204ff5d26e79e2be7479a12103
parent5e34a07e771d07187c17b3544a60273ef8aff8b0
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