/Linux-v6.1/drivers/net/dsa/ |
D | dsa_loop.c | 41 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()
|
D | lantiq_gswip.c | 285 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/ |
D | b53_common.c | 765 v = &dev->vlans[def_vid]; in b53_configure_vlan() 777 v = &dev->vlans[vid]; in b53_configure_vlan() 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() 1470 vl = &dev->vlans[vlan->vid]; in b53_vlan_add() 1506 vl = &dev->vlans[vlan->vid]; in b53_vlan_del() 1901 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave() 2278 u16 vlans; member 2301 .vlans = 16, 2311 .vlans = 256, [all …]
|
D | b53_priv.h | 145 struct b53_vlan *vlans; member
|
/Linux-v6.1/drivers/scsi/fnic/ |
D | fnic_fcs.c | 454 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() 1342 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer() [all …]
|
D | fnic.h | 294 struct list_head vlans; member
|
/Linux-v6.1/net/dsa/ |
D | tag_8021q.c | 118 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() 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()
|
D | switch.c | 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/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch.h | 153 u8 vlans[VLAN_VID_MASK + 1]; member 178 u8 vlans[VLAN_VID_MASK + 1]; member
|
D | dpaa2-switch.c | 205 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 …]
|
/Linux-v6.1/include/linux/dsa/ |
D | loop.h | 37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
|
D | 8021q.h | 26 struct list_head vlans; member
|
/Linux-v6.1/drivers/net/ |
D | macvlan.c | 46 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/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | bridge_priv.h | 60 struct xarray vlans; member
|
D | bridge.c | 1066 return xa_load(&port->vlans, vid); in mlx5_esw_bridge_vlan_lookup() 1220 err = xa_insert(&port->vlans, vid, vlan, GFP_KERNEL); in mlx5_esw_bridge_vlan_create() 1242 xa_erase(&port->vlans, vlan->vid); in mlx5_esw_bridge_vlan_erase() 1278 xa_for_each(&port->vlans, index, vlan) in mlx5_esw_bridge_port_vlans_flush() 1290 xa_for_each(&port->vlans, i, vlan) { in mlx5_esw_bridge_port_vlans_recreate() 1553 xa_init(&port->vlans); in mlx5_esw_bridge_vport_init()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs.c | 167 u16 *vlans; in mlx5e_vport_context_update_vlans() local 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() 200 kvfree(vlans); in mlx5e_vport_context_update_vlans()
|
/Linux-v6.1/include/linux/mlx5/ |
D | vport.h | 113 u16 vlans[],
|
/Linux-v6.1/net/mac80211/ |
D | key.c | 74 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count() 963 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_reenable_keys() 1128 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys() 1152 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
|
D | iface.c | 561 WARN_ON(!list_empty(&sdata->u.ap.vlans)); in ieee80211_do_stop() 750 list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, in ieee80211_stop() 1238 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open() 1785 INIT_LIST_HEAD(&sdata->u.ap.vlans); in ieee80211_setup_sdata() 1856 if (!list_empty(&sdata->u.ap.vlans)) in ieee80211_runtime_change_iftype()
|
/Linux-v6.1/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 159 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
|
D | qed_sriov.c | 1734 if (!p_vf->shadow_config.vlans[i].used) in qed_iov_reconfigure_unicast_vlan() 1738 filter.vlan = p_vf->shadow_config.vlans[i].vid; in qed_iov_reconfigure_unicast_vlan() 3116 if (p_vf->shadow_config.vlans[i].used && in qed_iov_vf_update_vlan_shadow() 3117 p_vf->shadow_config.vlans[i].vid == in qed_iov_vf_update_vlan_shadow() 3119 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow() 3132 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow() 3144 if (p_vf->shadow_config.vlans[i].used) in qed_iov_vf_update_vlan_shadow() 3147 p_vf->shadow_config.vlans[i].used = true; in qed_iov_vf_update_vlan_shadow() 3148 p_vf->shadow_config.vlans[i].vid = p_params->vlan; in qed_iov_vf_update_vlan_shadow()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ste_v1.c | 558 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_tx() 589 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_tx() 597 attr->vlans.headers[i]); in dr_ste_v1_set_actions_tx() 726 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_rx() 755 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_rx() 766 attr->vlans.headers[i]); in dr_ste_v1_set_actions_rx()
|
D | dr_action.c | 778 attr.vlans.count++; in mlx5dr_actions_build_ste_arr() 788 if (attr.vlans.count == MLX5DR_MAX_VLANS) { in mlx5dr_actions_build_ste_arr() 793 attr.vlans.headers[attr.vlans.count++] = action->push_vlan->vlan_hdr; in mlx5dr_actions_build_ste_arr()
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
D | ocelot.c | 288 list_for_each_entry(vlan, &ocelot->vlans, list) { in ocelot_port_num_untagged_vlans() 311 list_for_each_entry(vlan, &ocelot->vlans, list) { in ocelot_port_num_tagged_vlans() 336 list_for_each_entry(vlan, &ocelot->vlans, list) in ocelot_port_find_native_vlan() 457 list_for_each_entry(vlan, &ocelot->vlans, list) in ocelot_bridge_vlan_find() 508 list_add_tail(&vlan->list, &ocelot->vlans); in ocelot_vlan_member_add() 2750 INIT_LIST_HEAD(&ocelot->vlans); in ocelot_init()
|
/Linux-v6.1/drivers/net/ethernet/intel/fm10k/ |
D | fm10k.h | 517 u16 glort, bool vlans);
|