Skip to content

Commit 0850197

Browse files
sylwesterdziedziuchanguy11
authored andcommitted
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: e4b433f ("i40e: reset all VFs in parallel when rebuilding PF") Signed-off-by: Sylwester Dziedziuch <[email protected]> Signed-off-by: Jan Sokolowski <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 82e0572 commit 0850197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,7 @@ bool i40e_reset_vf(struct i40e_vf *vf, bool flr)
15781578
i40e_cleanup_reset_vf(vf);
15791579

15801580
i40e_flush(hw);
1581+
usleep_range(20000, 40000);
15811582
clear_bit(I40E_VF_STATE_RESETTING, &vf->vf_states);
15821583

15831584
return true;
@@ -1701,6 +1702,7 @@ bool i40e_reset_all_vfs(struct i40e_pf *pf, bool flr)
17011702
}
17021703

17031704
i40e_flush(hw);
1705+
usleep_range(20000, 40000);
17041706
clear_bit(__I40E_VF_DISABLE, pf->state);
17051707

17061708
return true;

0 commit comments

Comments
 (0)