diff options
author | Grzegorz Siwik <grzegorz.siwik@intel.com> | 2019-03-29 15:08:32 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-05-04 17:13:30 -0700 |
commit | 40a23040d82595acf819d4e7902331ecbbd17744 (patch) | |
tree | 320b829a9ee755a443b91f16bfaea158698bf224 /drivers/net/ethernet/intel/i40e/i40e_main.c | |
parent | e576e769663c7dfa5a40c8eac1f79b7ec2a22482 (diff) | |
download | linux-40a23040d82595acf819d4e7902331ecbbd17744.tar.gz linux-40a23040d82595acf819d4e7902331ecbbd17744.tar.bz2 linux-40a23040d82595acf819d4e7902331ecbbd17744.zip |
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: Grzegorz Siwik <grzegorz.siwik@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 7d0183c67cff..7116207320fb 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -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); } /** |