Skip to content

Commit f23ab04

Browse files
yahuicaoanguy11
authored andcommitted
ice: fix FDIR init missing when reset VF
When VF is being reset, ice_reset_vf() will be called and FDIR resource should be released and initialized again. Fixes: 1f7ea1c ("ice: Enable FDIR Configure for AVF") Signed-off-by: Yahui Cao <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent d17b973 commit f23ab04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,7 @@ bool ice_reset_all_vfs(struct ice_pf *pf, bool is_vflr)
16171617
ice_vc_set_default_allowlist(vf);
16181618

16191619
ice_vf_fdir_exit(vf);
1620+
ice_vf_fdir_init(vf);
16201621
/* clean VF control VSI when resetting VFs since it should be
16211622
* setup only when VF creates its first FDIR rule.
16221623
*/
@@ -1747,6 +1748,7 @@ bool ice_reset_vf(struct ice_vf *vf, bool is_vflr)
17471748
}
17481749

17491750
ice_vf_fdir_exit(vf);
1751+
ice_vf_fdir_init(vf);
17501752
/* clean VF control VSI when resetting VF since it should be setup
17511753
* only when VF creates its first FDIR rule.
17521754
*/

0 commit comments

Comments
 (0)