Home
last modified time | relevance | path

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

12345678

/linux-6.12.1/tools/testing/selftests/net/forwarding/
Dbridge_vlan_mcast.sh132 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
138 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_snooping == 1) " &>/dev/null
225 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
229 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_querier == 0) " &>/dev/null
255 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
259 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_igmp_version == 2) " &>/dev/null
265 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_mld_version == 1) " &>/dev/null
298 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
302 jq -e ".[].vlans[] | select(.vlan == 10 and \
309 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-6.12.1/drivers/net/dsa/
Dvitesse-vsc73xx.h45 * @vlans: List of configured vlans. Contains port mask and untagged status of
47 * vlans.
60 struct list_head vlans; member
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.c287 struct gswip_vlan vlans[64]; member
912 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
913 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create()
937 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create()
938 priv->vlans[idx].vid = vid; in gswip_vlan_active_create()
939 priv->vlans[idx].fid = fid; in gswip_vlan_active_create()
955 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove()
972 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
973 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware()
1035 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware()
[all …]
Dvitesse-vsc73xx-core.c942 INIT_LIST_HEAD(&vsc->vlans); in vsc73xx_setup()
1189 list_for_each_entry(vlan, &vsc->vlans, list) in vsc73xx_bridge_vlan_find()
1216 list_for_each_entry(vlan, &vsc->vlans, list) { in vsc73xx_bridge_vlan_summary()
1234 list_for_each_entry(vlan, &vsc->vlans, list) in vsc73xx_find_first_vlan_untagged()
1274 * preservation, or filtering with all VLANs egress-untagged. Otherwise,
1280 * - the number or attributes of VLANs from the bridge VLAN table,
1329 * In other cases no need to configure it because switch can untag all vlans on
1342 /* Port is configured to untag all vlans in that case. in vsc73xx_vlan_commit_untagged()
1350 /* Port must untag all vlans in that case. in vsc73xx_vlan_commit_untagged()
1395 * - the number or attributes of VLANs from the bridge VLAN table,
[all …]
/linux-6.12.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
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Drif_lag_vlan.sh74 log_test "Add RIFs for LAG VLANs on address addition"
90 log_test "Drop RIFs for LAG VLANs on port deslavement"
108 log_test "Add RIFs for LAG VLANs on port reenslavement"
124 # Removing the port from LAG should drop two RIFs for the LAG VLANs (as
/linux-6.12.1/drivers/net/dsa/b53/
Db53_common.c782 v = &dev->vlans[def_vid]; in b53_configure_vlan()
790 /* Upon initial call we have not set-up any VLANs, but upon in b53_configure_vlan()
794 v = &dev->vlans[vid]; in b53_configure_vlan()
910 /* reset vlans */ in b53_reset_switch()
911 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch()
1080 vl = &dev->vlans[i]; in b53_devlink_vlan_table_get()
1123 * which forces the CPU port to be tagged in all VLANs. in b53_setup()
1530 vl = &dev->vlans[vlan->vid]; in b53_vlan_add()
1566 vl = &dev->vlans[vlan->vid]; in b53_vlan_del()
1920 /* Make this port leave the all VLANs join since we will have proper in b53_br_join()
[all …]
/linux-6.12.1/net/dsa/
Dtag_8021q.c75 struct list_head vlans; member
135 list_for_each_entry(v, &ctx->vlans, list) in dsa_tag_8021q_vlan_find()
174 list_add_tail(&v->list, &ctx->vlans); in dsa_port_do_tag_8021q_vlan_add()
269 /* There are 2 ways of offloading tag_8021q VLANs.
282 * have tag_8021q VLANs appended, just bridge VLANs.
430 INIT_LIST_HEAD(&ctx->vlans); in dsa_tag_8021q_register()
453 list_for_each_entry_safe(v, n, &ctx->vlans, list) { in dsa_tag_8021q_unregister()
/linux-6.12.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-6.12.1/drivers/scsi/fnic/
Dfnic_fcs.c461 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp()
469 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp()
478 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp()
500 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc()
519 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check()
524 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check()
1313 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans()
1314 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans()
1340 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer()
1342 /* no vlans available, try again */ in fnic_handle_fip_timer()
[all …]
/linux-6.12.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-6.12.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.
De100.rst31 - Native VLANs
175 in different switches or in a switch partitioned to VLANs).
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c204 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan()
265 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
266 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
291 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan()
309 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan()
320 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan()
361 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_set_stp_state()
384 if (!ethsw->vlans[vid]) in dpaa2_switch_dellink()
392 ethsw->vlans[vid] = 0; in dpaa2_switch_dellink()
397 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink()
[all …]
Ddpaa2-switch.h153 u8 vlans[VLAN_VID_MASK + 1]; member
180 u8 vlans[VLAN_VID_MASK + 1]; member
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_vf_vsi_vlan_ops.c161 * initializes software only VLAN mode (i.e. allow all VLANs). Also, use no-op
181 /* Rx VLAN filtering always disabled to allow software offloaded VLANs in ice_vf_vsi_cfg_dvm_legacy_vlan_mode()
189 /* Tx VLAN filtering always disabled to allow software offloaded VLANs in ice_vf_vsi_cfg_dvm_legacy_vlan_mode()
Dice_eswitch_br.c318 vlan = xa_load(&port->vlans, vid); in ice_esw_br_port_vlan_lookup()
639 xa_erase(&port->vlans, vlan->vid); in ice_eswitch_br_vlan_cleanup()
650 xa_for_each(&port->vlans, index, vlan) in ice_eswitch_br_port_vlans_flush()
719 err = xa_insert(&port->vlans, vlan->vid, vlan, GFP_KERNEL); in ice_eswitch_br_vlan_create()
748 "Port VLAN (vsi=%u, vid=%d) exists on the port, remove it to add trunk VLANs\n", in ice_eswitch_br_port_vlan_add()
753 vlan = xa_load(&port->vlans, vid); in ice_eswitch_br_port_vlan_add()
781 vlan = xa_load(&port->vlans, vid); in ice_eswitch_br_port_vlan_del()
923 xa_init(&br_port->vlans); in ice_eswitch_br_port_init()
/linux-6.12.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,
Dnetdev-features.rst87 care must be taken as the change won't affect already configured VLANs.
147 VLANs. This may be not useful, though.]
/linux-6.12.1/drivers/net/
Dmacvlan.c46 struct list_head vlans; member
499 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame()
1251 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create()
1545 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink()
1770 list_for_each_entry(vlan, &port->vlans, list) { in update_port_bc_queue_len()
1794 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
1799 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1805 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1815 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event()
1828 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs.c174 u16 *vlans; in mlx5e_vport_context_update_vlans() local
186 …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()
191 vlans = kvcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
192 if (!vlans) in mlx5e_vport_context_update_vlans()
199 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans()
202 err = mlx5_modify_nic_vport_vlans(fs->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans()
204 fs_err(fs, "Failed to modify vport vlans list err(%d)\n", in mlx5e_vport_context_update_vlans()
207 kvfree(vlans); in mlx5e_vport_context_update_vlans()
/linux-6.12.1/include/linux/dsa/
Dloop.h37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member

12345678