Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/dsa/
Dlantiq_gswip.c253 struct gswip_vlan vlans[64]; member
860 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
861 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create()
885 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create()
886 priv->vlans[idx].vid = vid; in gswip_vlan_active_create()
887 priv->vlans[idx].fid = fid; in gswip_vlan_active_create()
903 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove()
920 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
921 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware()
983 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware()
[all …]
Ddsa_loop.c55 struct dsa_loop_vlan vlans[DSA_LOOP_VLANS]; member
213 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_add()
242 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_del()
/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.h53 u8 vlans[VLAN_VID_MASK + 1]; member
67 u8 vlans[VLAN_VID_MASK + 1]; member
Dethsw.c43 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in ethsw_add_vlan()
85 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in ethsw_port_set_pvid()
86 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in ethsw_port_set_pvid()
111 if (port_priv->vlans[vid]) { in ethsw_port_add_vlan()
124 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in ethsw_port_add_vlan()
135 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in ethsw_port_add_vlan()
215 if (!ethsw->vlans[vid]) in ethsw_dellink_switch()
223 ethsw->vlans[vid] = 0; in ethsw_dellink_switch()
227 ppriv_local->vlans[vid] = 0; in ethsw_dellink_switch()
896 if (!port_priv->ethsw_data->vlans[vid]) { in port_vlans_add()
[all …]
/Linux-v5.4/drivers/net/dsa/b53/
Db53_common.c795 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch()
1348 vl = &dev->vlans[vid]; in b53_vlan_add()
1382 vl = &dev->vlans[vid]; in b53_vlan_del()
1677 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave()
2002 u16 vlans; member
2023 .vlans = 16,
2032 .vlans = 256,
2041 .vlans = 4096,
2053 .vlans = 4096,
2065 .vlans = 4096,
[all …]
Db53_priv.h140 struct b53_vlan *vlans; member
/Linux-v5.4/drivers/scsi/fnic/
Dfnic_fcs.c470 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp()
478 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp()
487 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp()
509 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc()
528 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check()
533 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check()
1323 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans()
1324 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans()
1350 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer()
1360 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer()
[all …]
Dfnic.h292 struct list_head vlans; member
Dfnic_main.c781 INIT_LIST_HEAD(&fnic->vlans); in fnic_probe()
/Linux-v5.4/drivers/net/
Dmacvlan.c46 struct list_head vlans; member
477 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame()
1197 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create()
1467 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink()
1677 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
1682 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1689 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1699 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event()
1712 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event()
1724 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_action.c370 struct dr_action_vlan_info vlans; member
430 for (i = 0; i < attr->vlans.count; i++) { in dr_actions_apply_tx()
438 attr->vlans.headers[i], in dr_actions_apply_tx()
494 for (i = 0; i < attr->vlans.count; i++) { in dr_actions_apply_rx()
757 attr.vlans.count++; in mlx5dr_actions_build_ste_arr()
761 if (attr.vlans.count == MAX_VLANS) in mlx5dr_actions_build_ste_arr()
764 attr.vlans.headers[attr.vlans.count++] = action->push_vlan.vlan_hdr; in mlx5dr_actions_build_ste_arr()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs.c115 u16 *vlans; in mlx5e_vport_context_update_vlans() local
133 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
134 if (!vlans) in mlx5e_vport_context_update_vlans()
141 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans()
144 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans()
149 kfree(vlans); in mlx5e_vport_context_update_vlans()
Dvport.c385 u16 vlans[], in mlx5_modify_nic_vport_vlans() argument
426 MLX5_SET(vlan_layout, vlan_addr, vlan, vlans[i]); in mlx5_modify_nic_vport_vlans()
/Linux-v5.4/include/linux/mlx5/
Dvport.h121 u16 vlans[],
/Linux-v5.4/net/mac80211/
Dkey.c74 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count()
859 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_reenable_keys()
993 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
1017 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
Diface.c511 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open()
916 list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, in ieee80211_do_stop()
919 WARN_ON(!list_empty(&sdata->u.ap.vlans)); in ieee80211_do_stop()
1429 INIT_LIST_HEAD(&sdata->u.ap.vlans); in ieee80211_setup_sdata()
Dsta_info.h776 int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans);
Dsta_info.c1159 int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans) in __sta_info_flush() argument
1168 WARN_ON(vlans && sdata->vif.type != NL80211_IFTYPE_AP); in __sta_info_flush()
1169 WARN_ON(vlans && !sdata->bss); in __sta_info_flush()
1174 (vlans && sdata->bss == sta->sdata->bss)) { in __sta_info_flush()
Dchan.c817 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in __ieee80211_vif_copy_chanctx_to_vlans()
1004 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_vif_update_chandef()
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.h184 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
Dqed_sriov.c1752 if (!p_vf->shadow_config.vlans[i].used) in qed_iov_reconfigure_unicast_vlan()
1756 filter.vlan = p_vf->shadow_config.vlans[i].vid; in qed_iov_reconfigure_unicast_vlan()
3123 if (p_vf->shadow_config.vlans[i].used && in qed_iov_vf_update_vlan_shadow()
3124 p_vf->shadow_config.vlans[i].vid == in qed_iov_vf_update_vlan_shadow()
3126 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow()
3139 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow()
3151 if (p_vf->shadow_config.vlans[i].used) in qed_iov_vf_update_vlan_shadow()
3154 p_vf->shadow_config.vlans[i].used = true; in qed_iov_vf_update_vlan_shadow()
3155 p_vf->shadow_config.vlans[i].vid = p_params->vlan; in qed_iov_vf_update_vlan_shadow()
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/
Dfm10k.h524 u16 glort, bool vlans);
Dfm10k_netdev.c837 u16 glort, bool vlans) in fm10k_clear_macvlan_queue() argument
855 if (vlans) { in fm10k_clear_macvlan_queue()
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c437 u16 *vlans; in qlcnic_sriov_set_guest_vlan_mode() local
457 vlans = (u16 *)&cmd->rsp.arg[3]; in qlcnic_sriov_set_guest_vlan_mode()
459 sriov->allowed_vlans[i] = vlans[i]; in qlcnic_sriov_set_guest_vlan_mode()
/Linux-v5.4/Documentation/networking/
Dswitchdev.txt167 - Notification of learned/forgotten src mac/vlans from device

12