Skip to content

Commit dc5b4e9

Browse files
Catherine SullivanJeff Kirsher
authored andcommitted
i40e/i40evf: Reset VLAN filter count when resetting
When we do a reset, all the VLAN filters get added again. Therefore we also want to reset the VLAN count to 0 or we quickly run out of filters. Change-ID: I459f26851e22204dc8b8999928ad87cde8170119 Signed-off-by: Catherine Sullivan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 3a0f529 commit dc5b4e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ void i40e_reset_vf(struct i40e_vf *vf, bool flr)
992992
set_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states);
993993
clear_bit(I40E_VF_STAT_DISABLED, &vf->vf_states);
994994
i40e_notify_client_of_vf_reset(pf, abs_vf_id);
995+
vf->num_vlan = 0;
995996
}
996997
/* tell the VF the reset is done */
997998
wr32(hw, I40E_VFGEN_RSTAT1(vf->vf_id), I40E_VFR_VFACTIVE);

0 commit comments

Comments
 (0)