]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:34 +0000 (16:40 -0700)
commit4b14a0c8e2e9ef7c39050893cc6897300164798a
treed5077a91dd33946d40628905cc32f21e4b94c51d
parent7e5856730a03b667c828bf28114b8269ea37a0bb
ixgbe: Clean stale VLANs when changing port VLAN or resetting

Orabug: 23177316

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>
(cherry picked from commit 4c7f35f679f592804736f9303051257de2c9f021)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c