Home | History | Annotate | Download | only in ixgbe

Lines Matching refs:vlan

125 	/* RAR, Multicast, VLAN */
393 * table, VLAN filter table, calls routine to set up link and flow control
409 /* Clear the VLAN filter table */
495 * address registers, multicast table, VLAN
3940 * @vlan: VLAN id to write to VLAN filter
3945 * return the VLVF index where this VLAN id should be placed
3948 s32 ixgbe_find_vlvf_slot(struct ixgbe_hw *hw, u32 vlan, bool vlvf_bypass)
3954 if (vlan == 0)
3959 * VLVF that contain our VLAN
3963 /* add VLAN enable bit for comparison */
3964 vlan |= IXGBE_VLVF_VIEN;
3966 /* Search for the vlan id in the VLVF entries. Save off the first empty
3973 if (bits == vlan)
3979 /* If we are here then we didn't find the VLAN. Return first empty
3989 * ixgbe_set_vfta_generic - Set VLAN filter table
3991 * @vlan: VLAN id to write to VLAN filter
3992 * @vind: VMDq output index that maps queue to VLAN id in VLVFB
3993 * @vlan_on: boolean flag to turn on/off VLAN
3996 * Turn on/off specified VLAN in the VLAN filter table.
3998 s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind,
4006 if (vlan > 4095 || vind > 63)
4017 * that enable the particular VLAN id, much like the MTA:
4021 regidx = vlan / 32;
4022 vfta_delta = (u32)1 << (vlan % 32);
4036 ret_val = ixgbe_set_vlvf_generic(hw, vlan, vind, vlan_on, &vfta_delta,
4053 * ixgbe_set_vlvf_generic - Set VLAN Pool Filter
4055 * @vlan: VLAN id to write to VLAN filter
4056 * @vind: VMDq output index that maps queue to VLAN id in VLVFB
4057 * @vlan_on: boolean flag to turn on/off VLAN in VLVF
4065 s32 ixgbe_set_vlvf_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind,
4074 if (vlan > 4095 || vind > 63)
4079 * make sure the vlan is in VLVF
4087 vlvf_index = ixgbe_find_vlvf_slot(hw, vlan, vlvf_bypass);
4108 IXGBE_WRITE_REG(hw, IXGBE_VFTA(vlan / 32), vfta);
4118 * for the VLAN ID indicated we need to see if the
4121 * entry bit but there are still pools/VFs using this VLAN
4123 * about the case where we're turning the VFTA VLAN ID
4126 * VLAN ID entry. In that case we cannot clear the
4127 * VFTA bit until all pools/VFs using that VLAN ID have also
4134 /* record pool change and enable VLAN ID if not already enabled */
4136 IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), IXGBE_VLVF_VIEN | vlan);
4142 * ixgbe_clear_vfta_generic - Clear VLAN filter table
4145 * Clears the VLAN filter table, and the VMDq index associated with the filter
4481 * ixgbe_set_vlan_anti_spoofing - Enable/Disable VLAN anti-spoofing
4483 * @enable: enable or disable switch for VLAN anti-spoofing
4484 * @vf: Virtual Function pool - VF Pool to set for VLAN anti-spoofing