diff options
author | Stefan Assmann <sassmann@kpanic.de> | 2020-11-30 14:12:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-03 23:28:48 +0100 |
commit | d11a1402ec1610638bddcb1ab29b1481ed154b59 (patch) | |
tree | 71cdc9a9d1a6a46d4ddf4526e3f49497f6da66e0 /drivers/net/ethernet/intel/igbvf | |
parent | b2a76ea0479ead146dd77f32feaac469182ebd94 (diff) | |
download | kernel_replicant_linux-d11a1402ec1610638bddcb1ab29b1481ed154b59.tar.gz kernel_replicant_linux-d11a1402ec1610638bddcb1ab29b1481ed154b59.tar.bz2 kernel_replicant_linux-d11a1402ec1610638bddcb1ab29b1481ed154b59.zip |
i40e: acquire VSI pointer only after VF is initialized
[ Upstream commit 67a3c6b3cc40bb217c3ff947a55053151a00fea0 ]
This change simplifies the VF initialization check and also minimizes
the delay between acquiring the VSI pointer and using it. As known by
the commit being fixed, there is a risk of the VSI pointer getting
changed. Therefore minimize the delay between getting and using the
pointer.
Fixes: 9889707b06ac ("i40e: Fix crash caused by stress setting of VF MAC addresses")
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Reviewed-by: Jacob Keller <jacob.e.keller@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>
Diffstat (limited to 'drivers/net/ethernet/intel/igbvf')
0 files changed, 0 insertions, 0 deletions