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)
commit4c7f35f679f592804736f9303051257de2c9f021
treeef758799ca3aba1df10930ea61447f970af93861
parent6e982aeae5779a67fc02c5f6873654c49af97e70
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