iavf: Add __IAVF_INIT_FAILED state
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Thu, 19 Aug 2021 08:47:49 +0000 (08:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:51 +0000 (19:12 +0100)
commit57d2f0db2e63d6b1bb8592ac4402663b6df80b04
treea1a25613c4eeb276475ab7dd3b4a680b9dc986b2
parent7e2d102501e15d270ca309bcdf2127faf5b0a9eb
iavf: Add __IAVF_INIT_FAILED state

[ Upstream commit 59756ad6948be91d66867ce458083b820c59b8ba ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_main.c