Skip to content

Commit 13fd3f9

Browse files
mawilli1Jeff Kirsher
authored andcommitted
i40e: clear mac filter count on reset
When a VF is reset, it gets a new VSI, so all of its MAC filters go away. Correctly set the number of filters to 0 when freeing VF resources. This corrects a problem with failure to add filters when the VF driver is reloaded. Change-ID: I2acbecf734287b67473bb225293e14b5096acbef Signed-off-by: Mitch Williams <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 1dc8b53 commit 13fd3f9

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
@@ -811,6 +811,7 @@ static void i40e_free_vf_res(struct i40e_vf *vf)
811811
i40e_vsi_release(pf->vsi[vf->lan_vsi_idx]);
812812
vf->lan_vsi_idx = 0;
813813
vf->lan_vsi_id = 0;
814+
vf->num_mac = 0;
814815
}
815816
msix_vf = pf->hw.func_caps.num_msix_vectors_vf;
816817

0 commit comments

Comments
 (0)