]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Setting VF to VLAN 0 requires restart
authorGrzegorz Siwik <grzegorz.siwik@intel.com>
Fri, 29 Mar 2019 22:08:32 +0000 (15:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 5 May 2019 00:13:30 +0000 (17:13 -0700)
commitc91b709836749d949a2222fba29b28b9c34cb922
tree320b829a9ee755a443b91f16bfaea158698bf224
parente3848a689eb6de4787372dad27a3f6b1af7e049f
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>
drivers/net/ethernet/intel/i40e/i40e_main.c