Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40a23040 authored by Grzegorz Siwik's avatar Grzegorz Siwik Committed by Jeff Kirsher
Browse files

i40e: Setting VF to VLAN 0 requires restart



This patch fixes a bug where changing VLAN to 0 was not set until VF
restart.

Now we are setting pvid info to 0 when we have to change VLAN to 0.
Without this change when VF VLAN was changed to 0 nothing happened until
VF restart. For changing to VLAN different than 0 it worked correctly.

Signed-off-by: default avatarGrzegorz Siwik <grzegorz.siwik@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e576e769
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2975,9 +2975,9 @@ int i40e_vsi_add_pvid(struct i40e_vsi *vsi, u16 vid)
 **/
void i40e_vsi_remove_pvid(struct i40e_vsi *vsi)
{
	i40e_vlan_stripping_disable(vsi);

	vsi->info.pvid = 0;

	i40e_vlan_stripping_disable(vsi);
}

/**