Home
last modified time | relevance | path

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

12345678

/Linux-v6.1/tools/testing/selftests/drivers/net/dsa/
Dbridge_vlan_mcast.sh129 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
135 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_snooping == 1) " &>/dev/null
222 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
226 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_querier == 0) " &>/dev/null
252 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
256 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_igmp_version == 2) " &>/dev/null
262 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_mld_version == 1) " &>/dev/null
295 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
299 jq -e ".[].vlans[] | select(.vlan == 10 and \
306 jq -e ".[].vlans[] | select(.vlan == 10 and \
[all …]
/Linux-v6.1/tools/testing/selftests/net/forwarding/
Dbridge_vlan_mcast.sh129 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
135 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_snooping == 1) " &>/dev/null
222 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
226 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_querier == 0) " &>/dev/null
252 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
256 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_igmp_version == 2) " &>/dev/null
262 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_mld_version == 1) " &>/dev/null
295 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
299 jq -e ".[].vlans[] | select(.vlan == 10 and \
306 jq -e ".[].vlans[] | select(.vlan == 10 and \
[all …]
Dtc_vlan_modify.sh108 check_fail $? "ping between two different vlans passed when should not"
111 check_fail $? "ping6 between two different vlans passed when should not"
119 check_err $? "ping between two different vlans failed when should not"
122 check_err $? "ping6 between two different vlans failed when should not"
135 check_fail $? "ping between two different vlans passed when should not"
138 check_fail $? "ping6 between two different vlans passed when should not"
146 check_err $? "ping between two different vlans failed when should not"
149 check_err $? "ping6 between two different vlans failed when should not"
/Linux-v6.1/net/8021q/
DKconfig13 the 'ip' utility in order to effectively use VLANs.
28 automatic propagation of registered VLANs to switches.
38 automatic propagation of registered VLANs to switches; it
Dvlan.c135 pr_info("VLANs not supported on %s\n", name); in vlan_check_real_dev()
136 NL_SET_ERR_MSG_MOD(extack, "VLANs not supported on device"); in vlan_check_real_dev()
438 /* Put all VLANs for this dev in the down state too. */ in vlan_device_event()
460 /* Put all VLANs for this dev in the up state too. */ in vlan_device_event()
/Linux-v6.1/drivers/net/dsa/
Ddsa_loop.c41 for (i = 0; i < ARRAY_SIZE(ps->vlans); i++) { in dsa_loop_devlink_vtu_get()
42 vl = &ps->vlans[i]; in dsa_loop_devlink_vtu_get()
56 devlink_resource_size_params_init(&size_params, ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources()
57 ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources()
60 err = dsa_devlink_resource_register(ds, "VTU", ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources()
214 if (vlan->vid >= ARRAY_SIZE(ps->vlans)) in dsa_loop_port_vlan_add()
220 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_add()
249 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_del()
Dlantiq_gswip.c285 struct gswip_vlan vlans[64]; member
919 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
920 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create()
944 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create()
945 priv->vlans[idx].vid = vid; in gswip_vlan_active_create()
946 priv->vlans[idx].fid = fid; in gswip_vlan_active_create()
962 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove()
979 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
980 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware()
1042 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware()
[all …]
/Linux-v6.1/drivers/net/dsa/b53/
Db53_common.c765 v = &dev->vlans[def_vid]; in b53_configure_vlan()
773 /* Upon initial call we have not set-up any VLANs, but upon in b53_configure_vlan()
777 v = &dev->vlans[vid]; in b53_configure_vlan()
893 /* reset vlans */ in b53_reset_switch()
894 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch()
1063 vl = &dev->vlans[i]; in b53_devlink_vlan_table_get()
1106 * which forces the CPU port to be tagged in all VLANs. in b53_setup()
1470 vl = &dev->vlans[vlan->vid]; in b53_vlan_add()
1506 vl = &dev->vlans[vlan->vid]; in b53_vlan_del()
1860 /* Make this port leave the all VLANs join since we will have proper in b53_br_join()
[all …]
/Linux-v6.1/net/dsa/
Dtag_8021q.c118 list_for_each_entry(v, &ctx->vlans, list) in dsa_tag_8021q_vlan_find()
157 list_add_tail(&v->list, &ctx->vlans); in dsa_port_do_tag_8021q_vlan_add()
252 /* There are 2 ways of offloading tag_8021q VLANs.
265 * have tag_8021q VLANs appended, just bridge VLANs.
409 INIT_LIST_HEAD(&ctx->vlans); in dsa_tag_8021q_register()
424 list_for_each_entry_safe(v, n, &ctx->vlans, list) { in dsa_tag_8021q_unregister()
Dswitch.c611 /* Port VLANs match on the targeted port and on all DSA ports */
618 /* Host VLANs match on the targeted port's CPU port, and on all DSA ports
657 /* No need to propagate on shared ports the existing VLANs that were in dsa_port_do_vlan_add()
667 v = dsa_vlan_find(&dp->vlans, vlan); in dsa_port_do_vlan_add()
687 list_add_tail(&v->list, &dp->vlans); in dsa_port_do_vlan_add()
709 v = dsa_vlan_find(&dp->vlans, vlan); in dsa_port_do_vlan_del()
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/ti/
Dam65_nuss_cpsw_switchdev.rst88 Add extra VLANs
111 bridge fdb add aa:bb:cc:dd:ee:fe dev sw0p2 master <---- Add on all VLANs
121 bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent <---- Add on all VLANs
Dcpsw_switchdev.rst138 Add extra VLANs
161 bridge fdb add aa:bb:cc:dd:ee:fe dev sw0p2 master <---- Add on all VLANs
171 bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent <---- Add on all VLANs
/Linux-v6.1/drivers/scsi/fnic/
Dfnic_fcs.c454 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp()
462 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp()
471 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp()
493 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc()
512 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check()
517 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check()
1304 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans()
1305 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans()
1331 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer()
1333 /* no vlans available, try again */ in fnic_handle_fip_timer()
[all …]
/Linux-v6.1/Documentation/networking/dsa/
Db53.rst50 The b53 tags the CPU port in all VLANs, since otherwise any PVID untagged
99 # configure the VLANs
178 # configure the VLANs
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/intel/
Dixgbevf.rst52 VLANs: There is a limit of a total of 64 shared VLANs to 1 or more VFs.
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_vf_vsi_vlan_ops.c124 * initializes software only VLAN mode (i.e. allow all VLANs). Also, use no-op
144 /* Rx VLAN filtering always disabled to allow software offloaded VLANs in ice_vf_vsi_cfg_dvm_legacy_vlan_mode()
152 /* Tx VLAN filtering always disabled to allow software offloaded VLANs in ice_vf_vsi_cfg_dvm_legacy_vlan_mode()
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c205 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan()
266 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
267 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
292 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan()
310 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan()
321 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan()
362 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_set_stp_state()
385 if (!ethsw->vlans[vid]) in dpaa2_switch_dellink()
393 ethsw->vlans[vid] = 0; in dpaa2_switch_dellink()
398 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink()
[all …]
Ddpaa2-switch.h153 u8 vlans[VLAN_VID_MASK + 1]; member
178 u8 vlans[VLAN_VID_MASK + 1]; member
/Linux-v6.1/drivers/net/
Dmacvlan.c46 struct list_head vlans; member
490 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame()
1232 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create()
1521 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink()
1738 list_for_each_entry(vlan, &port->vlans, list) { in update_port_bc_queue_len()
1762 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
1767 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1773 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1783 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event()
1796 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event()
[all …]
/Linux-v6.1/Documentation/networking/
Dswitchdev.rst90 level constructs such as bridges, bonds, VLANs, tunnels, and L3 routers. Using
156 L2 networks. VLANs can be applied to sub-divide L2 networks. L2-over-L3
178 - Notification of learned/forgotten src mac/vlans from device
226 Notification of Learned/Forgotten Source MAC/VLANs
303 Note that STP BDPUs are untagged and STP state applies to all VLANs on the port
305 VLANs on the port.
438 When configuring VLANs on top of the network device, all VLANs must be working,
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs.c167 u16 *vlans; in mlx5e_vport_context_update_vlans() local
179 …fs_warn(fs, "netdev vlans list size (%d) > (%d) max vport list size, some vlans will be dropped\n", in mlx5e_vport_context_update_vlans()
184 vlans = kvcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
185 if (!vlans) in mlx5e_vport_context_update_vlans()
192 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans()
195 err = mlx5_modify_nic_vport_vlans(fs->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans()
197 fs_err(fs, "Failed to modify vport vlans list err(%d)\n", in mlx5e_vport_context_update_vlans()
200 kvfree(vlans); in mlx5e_vport_context_update_vlans()
/Linux-v6.1/include/linux/dsa/
Dloop.h37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
D8021q.h26 struct list_head vlans; member
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge_priv.h60 struct xarray vlans; member
/Linux-v6.1/net/bridge/
Dbr_vlan.c730 /* Master VLANs that aren't brentries weren't notified before, in br_vlan_add_existing()
741 /* It was only kept for port vlans, now make it real */ in br_vlan_add_existing()
958 /* Add VLANs for the new proto to the device filter. */ in __br_vlan_set_proto()
975 /* Delete VLANs for the old proto from the device filter. */ in __br_vlan_set_proto()
1036 /* allow to change the option if there are no port vlans configured */ in br_vlan_set_stats_per_port()
2023 /* advance number of filled vlans */ in br_vlan_dump_dev()
2037 /* advance number of filled vlans */ in br_vlan_dump_dev()
2248 int err, vlans = 0; in br_vlan_rtm_process() local
2283 vlans++; in br_vlan_rtm_process()
2287 if (!vlans) { in br_vlan_rtm_process()
[all …]

12345678