]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix for VF MAC address 0
authorSylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Mon, 31 Oct 2022 12:00:28 +0000 (13:00 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 5 Dec 2022 16:30:51 +0000 (08:30 -0800)
commit08501970472077ed5de346ad89943a37d1692e9b
treecc831bf66af5a9b2b4e1e131e7d4c75b3dfd0345
parent82e0572b23029b380464fa9fdc125db9c1506d0a
i40e: Fix for VF MAC address 0

After spawning max VFs on a PF, some VFs were not getting resources and
their MAC addresses were 0. This was caused by PF sleeping before flushing
HW registers which caused VIRTCHNL_VFR_VFACTIVE to not be set in time for
VF.

Fix by adding a sleep after hw flush.

Fixes: e4b433f4a741 ("i40e: reset all VFs in parallel when rebuilding PF")
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c