| /freebsd/sys/netgraph/ |
| H A D | ng_vlan_rotate.c | 308 * 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 D | ip175c.c | 126 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 D | ip17x_vlans.c | 56 * Reset vlans to default state. 74 /* Initialize port based vlans. */ in ip17x_reset_vlans()
|
| H A D | ip175d.c | 152 * VLAN classification rules: tag-based VLANs, in ip175d_set_vlan_mode() 187 /* Reset vlans. */ in ip175d_set_vlan_mode()
|
| /freebsd/share/man/man4/ |
| H A D | bridge.4 | 275 Virtual LANs (VLANs), defined in the IEEE 802.1Q standard, allow traffic 284 When VLANs are in use on a bridge, it is recommended to explicitly 289 address may exist on several different ports in different VLANs. 308 .Ss Assigning interfaces to VLANs 347 meaning that VLANs do not provide security separation. 348 To restrict which interfaces may communicate in which VLANs, 376 For example, to allow an interface to communicate in VLANs 10, 20, 636 The following will cause a bridge to be created with two VLANs, 639 interfaces can only communicate in their assigned VLANs, 659 communicate in VLANs 10 and 20:
|
| H A D | vlan.4 | 53 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 D | ng_vlan_rotate.4 | 68 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 D | ix.4 | 70 This driver version supports VLANs. 71 For information on enabling VLANs, see
|
| H A D | igc.4 | 44 For information on enabling VLANs, see
|
| /freebsd/sbin/ifconfig/ |
| H A D | ifbridge.c | 168 print_vlans(ifbvlan_set_t *vlans) in print_vlans() argument 175 if (!BRVLAN_TEST(vlans, vlan)) { in print_vlans() 181 while (last < DOT1Q_VID_MAX && BRVLAN_TEST(vlans, last + 1)) in print_vlans() 822 /* "all" means all vlans, except for 0 and 4095 which are reserved */ in parse_vlans() 870 set_bridge_vlanset(if_ctx *ctx, const char *ifn, const char *vlans, int op) in set_bridge_vlanset() argument 876 if (parse_vlans(&req.bv_set, vlans) != 0) in set_bridge_vlanset() 877 errx(1, "invalid vlan set: %s", vlans); in set_bridge_vlanset() 883 err(1, "BRDGSIFVLANSET %s", vlans); in set_bridge_vlanset() 887 setbridge_iftagged(if_ctx *ctx, const char *ifn, const char *vlans) in setbridge_iftagged() argument 889 set_bridge_vlanset(ctx, ifn, vlans, BRDG_VLAN_OP_SET); in setbridge_iftagged() [all …]
|
| /freebsd/sys/contrib/edk2/Include/Protocol/ |
| H A D | VlanConfig.h | 70 Find configuration information for specified VLAN or all configured VLANs. 77 configured VLANs. 78 @param[out] NumberOfVlan The number of VLANs which is found by the specified criteria.
|
| /freebsd/sys/dev/etherswitch/ar40xx/ |
| H A D | ar40xx_hw.c | 159 /* 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 D | ar40xx_var.h | 101 /* Whether 802.1q VLANs are enabled or not */
|
| /freebsd/sys/dev/etherswitch/arswitch/ |
| H A D | arswitch_vlans.c | 147 /* 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 D | if_vlan.c | 104 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 D | felix.c | 563 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 D | felix_var.h | 104 int vlans[FELIX_NUM_VLANS]; member
|
| /freebsd/tests/sys/net/ |
| H A D | if_bridge_test.sh | 1018 # Create two tagged interfaces on the appropriate VLANs 1124 # Right now there are no VLANs on the access list, so everything 1141 # Add VLANs 10-30 to the access list; now access should be allowed. 1182 # To start with, no vlans should be configured. 1185 # Add vlans 100-149. 1193 # Add vlans 100-170. 1197 # Remove vlans 104, 105, and 150-159 1206 # Test some invalid vlans sets. 1303 # Right now there are no VLANs on the access list, so everything 1378 # With two ports on different VLANs, traffic should not be passed.
|
| /freebsd/sys/dev/mlx5/ |
| H A D | vport.h | 111 u16 vlans[], 114 u16 vlans[],
|
| /freebsd/sys/dev/etherswitch/e6000sw/ |
| H A D | e6000sw.c | 94 int vlans[E6000SW_NUM_VLANS]; member 1131 for (i = 0; i < nitems(sc->vlans); i++) 1132 sc->vlans[i] = 0; 1136 sc->vlans[0] = 1; 1137 e6000sw_vtu_update(sc, 0, sc->vlans[0], 1, 0, sc->ports_mask); 1278 sc->vlans[vg->es_vlangroup], 0, 0, 0); 1279 sc->vlans[vg->es_vlangroup] = 0; 1285 if (i != vg->es_vlangroup && vlan == sc->vlans[i]) 1288 sc->vlans[vg->es_vlangroup] = vlan; 1343 vg->es_vid = sc->vlans[vg->es_vlangroup];
|
| /freebsd/contrib/wpa/hostapd/ |
| H A D | hostapd.accept | 3 # MAC address if dynamic VLANs (hostapd.conf dynamic_vlan option) are used.
|
| /freebsd/sys/dts/arm/ |
| H A D | qcom-ipq4019-ethernet.dtsi | 201 * 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 D | mlx5_en_flow_table.c | 618 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 D | ecore_sriov.h | 121 /* 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 D | vlan_rotate.c | 105 /* reduce the number of vlans */ in _basic() 286 /* reduce the number of vlans */ in ATF_TC_BODY()
|