Home
last modified time | relevance | path

Searched refs:vlans (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.12.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.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.h60 struct list_head vlans; member
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()
1673 list_add_tail(&vsc73xx_vlan->list, &vsc->vlans); in vsc73xx_port_vlan_add()
/linux-6.12.1/drivers/net/dsa/b53/
Db53_common.c782 v = &dev->vlans[def_vid]; in b53_configure_vlan()
794 v = &dev->vlans[vid]; in b53_configure_vlan()
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()
1530 vl = &dev->vlans[vlan->vid]; in b53_vlan_add()
1566 vl = &dev->vlans[vlan->vid]; in b53_vlan_del()
1961 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave()
2327 u16 vlans; member
2350 .vlans = 16,
2360 .vlans = 256,
[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()
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()
Dswitch.c715 v = dsa_vlan_find(&dp->vlans, vlan); in dsa_port_do_vlan_add()
737 list_add_tail(&v->list, &dp->vlans); in dsa_port_do_vlan_add()
763 v = dsa_vlan_find(&dp->vlans, vlan); in dsa_port_do_vlan_del()
/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()
1351 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer()
[all …]
Dfnic.h317 struct list_head vlans; member
/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/include/linux/dsa/
Dloop.h37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
/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/intel/ice/
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()
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()
Dice_eswitch_br.h50 struct xarray vlans; member
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs.c174 u16 *vlans; in mlx5e_vport_context_update_vlans() local
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()
207 kvfree(vlans); in mlx5e_vport_context_update_vlans()
/linux-6.12.1/include/linux/mlx5/
Dvport.h114 u16 vlans[],
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge_priv.h185 struct xarray vlans; member
Dbridge.c1017 return xa_load(&port->vlans, vid); in mlx5_esw_bridge_vlan_lookup()
1190 err = xa_insert(&port->vlans, vid, vlan, GFP_KERNEL); in mlx5_esw_bridge_vlan_create()
1214 xa_erase(&port->vlans, vlan->vid); in mlx5_esw_bridge_vlan_erase()
1254 xa_for_each(&port->vlans, index, vlan) in mlx5_esw_bridge_port_vlans_flush()
1266 xa_for_each(&port->vlans, i, vlan) { in mlx5_esw_bridge_port_vlans_recreate()
1558 xa_init(&port->vlans); in mlx5_esw_bridge_vport_init()
Dbridge_mcast.c694 xa_for_each(&port->vlans, index, vlan) { in mlx5_esw_bridge_port_mcast_fhs_init()
708 xa_for_each(&port->vlans, index, vlan) { in mlx5_esw_bridge_port_mcast_fhs_init()
725 xa_for_each(&port->vlans, index, vlan) in mlx5_esw_bridge_port_mcast_fhs_cleanup()
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.h159 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
/linux-6.12.1/net/mac80211/
Dkey.c69 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count()
976 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_reenable_keys()
1146 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
1170 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
Diface.c566 WARN_ON(!list_empty(&sdata->u.ap.vlans)); in ieee80211_do_stop()
770 list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, in ieee80211_stop()
1244 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open()
1756 INIT_LIST_HEAD(&sdata->u.ap.vlans); in ieee80211_setup_sdata()
1827 if (!list_empty(&sdata->u.ap.vlans)) in ieee80211_runtime_change_iftype()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v1.c643 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_tx()
673 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_tx()
681 attr->vlans.headers[i]); in dr_ste_v1_set_actions_tx()
830 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_rx()
861 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_rx()
872 attr->vlans.headers[i]); in dr_ste_v1_set_actions_rx()
/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot.c325 list_for_each_entry(vlan, &ocelot->vlans, list) { in ocelot_port_num_untagged_vlans()
348 list_for_each_entry(vlan, &ocelot->vlans, list) { in ocelot_port_num_tagged_vlans()
373 list_for_each_entry(vlan, &ocelot->vlans, list) in ocelot_port_find_native_vlan()
651 list_for_each_entry(vlan, &ocelot->vlans, list) in ocelot_bridge_vlan_find()
702 list_add_tail(&vlan->list, &ocelot->vlans); in ocelot_vlan_member_add()
3186 INIT_LIST_HEAD(&ocelot->vlans); in ocelot_init()

12