]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Clean stale VLANs when changing port VLAN or resetting
authorAlexander Duyck <aduyck@mirantis.com>
Tue, 3 Nov 2015 01:10:32 +0000 (17:10 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 12 Dec 2015 10:11:27 +0000 (02:11 -0800)
commitbc963a2ae9160373ee78809fc51aa910f61596eb
treeef758799ca3aba1df10930ea61447f970af93861
parente1e03ee41593db0100e0a63319c7848f7cdba589
ixgbe: Clean stale VLANs when changing port VLAN or resetting

This patch guarantees that the VFs do not have access to VLANs that they
were not supposed to.  What this patch does is add code so that we delete
the previous port VLAN after adding a new one, and if we reset the VF we
clear all of the filters associated with it.

Previously the code was leaving all previous VLANs mapped to the VF and
they didn't get deleted unless the VF specifically requested it or if the
PF itself was reset.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c