Home
last modified time | relevance | path

Searched full:vlans (Results 1 – 25 of 90) sorted by relevance

1234

/freebsd/sys/netgraph/
H A Dng_vlan_rotate.c308 * Receive data, and do rotate the vlans as desired.
311 * of vlans are not relativly prime. In this case multiple slices need
315 * 01234 5 vlans given
378 int8_t vlans = 0; in ng_vlanrotate_rcvdata() local
399 /* count the vlans */ in ng_vlanrotate_rcvdata()
400 for (vlans = 0; vlans <= NG_VLANROTATE_MAX_VLANS; vlans++) { in ng_vlanrotate_rcvdata()
402 + vlans * sizeof(struct ether_vlan_stack_entry); in ng_vlanrotate_rcvdata()
413 switch (ntohs(evsh->vlan_stack[vlans].proto)) { in ng_vlanrotate_rcvdata()
425 if ((vlans > vrp->conf.max) || (vlans >= NG_VLANROTATE_MAX_VLANS)) { in ng_vlanrotate_rcvdata()
431 if ((vlans < vrp->conf.min) || (vlans <= abs(rotate))) { in ng_vlanrotate_rcvdata()
[all …]
/freebsd/sys/dev/etherswitch/ip17x/
H A Dip175c.c126 uint32_t vlans[IP17X_MAX_VLANS]; in ip175c_dot1q_vlan_setup() local
147 memset(vlans, 0, sizeof(vlans)); in ip175c_dot1q_vlan_setup()
152 vlans[v->vlanid & ETHERSWITCH_VID_MASK] = v->ports; in ip175c_dot1q_vlan_setup()
156 data = vlans[j++] & 0x3f; in ip175c_dot1q_vlan_setup()
157 data |= (vlans[j++] & 0x3f) << 8; in ip175c_dot1q_vlan_setup()
215 /* Reset vlans. */ in ip175c_set_vlan_mode()
H A Dip17x_vlans.c56 * Reset vlans to default state.
74 /* Initialize port based vlans. */ in ip17x_reset_vlans()
H A Dip175d.c152 * VLAN classification rules: tag-based VLANs, in ip175d_set_vlan_mode()
187 /* Reset vlans. */ in ip175d_set_vlan_mode()
/freebsd/sys/dev/etherswitch/ar40xx/
H A Dar40xx_hw.c159 /* Enable VLANs by default */ in ar40xx_hw_vlan_init()
219 * VLANs, or just straight up per-port VLANs. in ar40xx_hw_sw_hw_apply()
222 device_printf(sc->sc_dev, "%s: configuring 802.1q VLANs\n", in ar40xx_hw_sw_hw_apply()
246 device_printf(sc->sc_dev, "%s: configuring per-port VLANs\n", in ar40xx_hw_sw_hw_apply()
H A Dar40xx_var.h101 /* Whether 802.1q VLANs are enabled or not */
/freebsd/share/man/man4/
H A Dvlan.453 multiple VLANs through a single switch trunk port.
104 help in processing VLANs.
146 Other Ethernet interfaces can run VLANs using software emulation in the
H A Dng_vlan_rotate.468 If it contains fewer VLANs in the stack than the configured
76 If there are more VLANs in the stack than the configured
106 VLANs in the stack.
H A Dix.470 This driver version supports VLANs.
71 For information on enabling VLANs, see
H A Dice.488 This driver version supports VLANs.
89 For information on enabling VLANs, see the
H A Digc.444 For information on enabling VLANs, see
/freebsd/sys/dev/etherswitch/arswitch/
H A Darswitch_vlans.c147 /* For port based vlans the vlanid is the same as the port index. */ in ar8xxx_get_port_vlan()
161 /* For port based vlans the vlanid is the same as the port index. */ in ar8xxx_set_port_vlan()
172 * Reset vlans to default state.
231 /* Initialize the port based vlans. */ in ar8xxx_reset_vlans()
248 /* Disable the ingress filter and get everyone on all vlans. */ in ar8xxx_reset_vlans()
/freebsd/sys/net/
H A Dif_vlan.c104 struct ifvlan *vlans[VLAN_ARRAY_SIZE]; /* static table */ member
135 if (((_ifv) = (_trunk)->vlans[_i]) != NULL)
146 * also modifying the number of vlans on the trunk. The iteration continues
147 * until some condition is met or there are no more vlans on the trunk.
154 if (((_ifv) = (_trunk)->vlans[_i]))
158 * modified (i.e. vlans removed) while we are iterating over it. To allow for
225 * modification of vlan interfaces and (mostly) allow for vlans to be destroyed
447 * Grow the hash when the number of vlans exceeds half of the number of in vlan_inshash()
566 return trunk->vlans[vid]; in vlan_gethash()
573 if (trunk->vlans[ifv->ifv_vid] != NULL) in vlan_inshash()
[all …]
/freebsd/sys/dev/etherswitch/felix/
H A Dfelix.c563 sc->vlans[i] = 0; in felix_init_vlan()
826 FELIX_WR4(sc, FELIX_ANA_VTIDX, sc->vlans[vg->es_vlangroup]); in felix_set_dot1q_vlan()
828 sc->vlans[vg->es_vlangroup] = 0; in felix_set_dot1q_vlan()
834 if (i != vg->es_vlangroup && vid == sc->vlans[i]) in felix_set_dot1q_vlan()
838 if (sc->vlans[vg->es_vlangroup] != 0 && in felix_set_dot1q_vlan()
839 sc->vlans[vg->es_vlangroup] != vid) in felix_set_dot1q_vlan()
842 sc->vlans[vg->es_vlangroup] = vid; in felix_set_dot1q_vlan()
890 vid = sc->vlans[vg->es_vlangroup]; in felix_get_dot1q_vlan()
H A Dfelix_var.h104 int vlans[FELIX_NUM_VLANS]; member
/freebsd/sys/dev/mlx5/
H A Dvport.h111 u16 vlans[],
114 u16 vlans[],
/freebsd/sys/dev/etherswitch/e6000sw/
H A De6000sw.c93 int vlans[E6000SW_NUM_VLANS]; member
1105 for (i = 0; i < nitems(sc->vlans); i++)
1106 sc->vlans[i] = 0;
1110 sc->vlans[0] = 1;
1111 e6000sw_vtu_update(sc, 0, sc->vlans[0], 1, 0, sc->ports_mask);
1252 sc->vlans[vg->es_vlangroup], 0, 0, 0);
1253 sc->vlans[vg->es_vlangroup] = 0;
1259 if (i != vg->es_vlangroup && vlan == sc->vlans[i])
1262 sc->vlans[vg->es_vlangroup] = vlan;
1317 vg->es_vid = sc->vlans[vg->es_vlangroup];
/freebsd/contrib/wpa/hostapd/
H A Dhostapd.accept3 # MAC address if dynamic VLANs (hostapd.conf dynamic_vlan option) are used.
H A Ddefconfig201 # Remove support for VLANs
204 # Enable support for fully dynamic VLANs. This enables hostapd to
/freebsd/sys/dts/arm/
H A Dqcom-ipq4019-ethernet.dtsi201 * When 802.1q VLANs are not used the switch
207 * When 802.1q VLANs are used then it's both
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_flow_table.c618 u16 *vlans; in mlx5e_vport_context_update_vlans() local
631 "ifnet vlans list size (%d) > (%d) max vport list size, some vlans will be dropped\n", in mlx5e_vport_context_update_vlans()
636 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
637 if (!vlans) in mlx5e_vport_context_update_vlans()
644 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans()
647 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans()
649 mlx5_en_err(ifp, "Failed to modify vport vlans list err(%d)\n", in mlx5e_vport_context_update_vlans()
652 kfree(vlans); in mlx5e_vport_context_update_vlans()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_sriov.h121 /* Shadow copy of all guest vlans */
122 struct ecore_vf_vlan_shadow vlans[ECORE_ETH_VF_NUM_VLAN_FILTERS + 1]; member
/freebsd/tests/sys/netgraph/
H A Dvlan_rotate.c105 /* reduce the number of vlans */ in _basic()
286 /* reduce the number of vlans */ in ATF_TC_BODY()
/freebsd/sys/dev/ixgbe/
H A Dixgbe_sriov.h48 #define IXGBE_VF_CAP_VLAN (1 << 2) /* VF is permitted to join vlans. */
/freebsd/sys/dev/ice/
H A Dvirtchnl.h1029 * VLANs, the VF would populate the virtchnl_vlan_setting structure in the
1063 * In order to enable outer VLAN stripping for 0x8100 and 0x88a8 VLANs, the VF
1095 * In order to enable outer VLAN stripping for 0x88a8 VLANs, the VF would
1131 * In order to enable outer VLAN filtering for 0x88a8 and 0x8100 VLANs (0x9100
1132 * VLANs aren't supported by the VF driver), the VF would populate the
1135 * to disable outer VLAN filtering for 0x88a8 and 0x8100 VLANs, but the

1234