aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
diff options
context:
space:
mode:
authorAlexander Duyck <aduyck@mirantis.com>2015-11-02 20:10:01 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-12-12 04:29:28 -0500
commitb6488b662b5011a3640033a266886603892dfed1 (patch)
tree7ee92d4c0f06280cc6f642f48af127708176ffe4 /drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
parent5ac736a65ac131e76edb5bbe75f7f9acef7a8a7b (diff)
ixgbe: Add support for adding/removing VLAN on PF bypassing the VLVF
This patch adds support for bypassing the VLVF entry creation when the PF is adding a new VLAN. The advantage to doing this is that we can then save the VLVF entries for the VFs which must have them in order to function, versus the PF which can fall back on the default pool entry. 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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
index 8f09d291a043..d8a9fb8a59e2 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
@@ -880,11 +880,12 @@ static s32 ixgbe_clear_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq)
880 * @vlan: VLAN id to write to VLAN filter 880 * @vlan: VLAN id to write to VLAN filter
881 * @vind: VMDq output index that maps queue to VLAN id in VFTA 881 * @vind: VMDq output index that maps queue to VLAN id in VFTA
882 * @vlan_on: boolean flag to turn on/off VLAN in VFTA 882 * @vlan_on: boolean flag to turn on/off VLAN in VFTA
883 * @vlvf_bypass: boolean flag - unused
883 * 884 *
884 * Turn on/off specified VLAN in the VLAN filter table. 885 * Turn on/off specified VLAN in the VLAN filter table.
885 **/ 886 **/
886static s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, 887static s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind,
887 bool vlan_on) 888 bool vlan_on, bool vlvf_bypass)
888{ 889{
889 u32 regindex; 890 u32 regindex;
890 u32 bitindex; 891 u32 bitindex;