Home
last modified time | relevance | path

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

12

/linux/drivers/net/dsa/b53/
H A Db53_common.c927 v = &dev->vlans[def_vid]; in b53_configure_vlan()
945 v = &dev->vlans[vid]; in b53_configure_vlan()
1071 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch()
1239 vl = &dev->vlans[i]; in b53_devlink_vlan_table_get()
1311 vl = &dev->vlans[pvid]; in b53_setup()
1742 vl = &dev->vlans[vlan->vid]; in b53_vlan_add()
1782 vl = &dev->vlans[vlan->vid]; in b53_vlan_del()
2279 vl = &dev->vlans[pvid]; in b53_br_join()
2362 vl = &dev->vlans[pvid]; in b53_br_leave()
2764 u16 vlans; member
[all …]
/linux/net/dsa/
H A 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()
H A 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/drivers/net/ethernet/freescale/dpaa2/
H A 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 …]
H A Ddpaa2-switch.h153 u8 vlans[VLAN_VID_MASK + 1]; member
180 u8 vlans[VLAN_VID_MASK + 1]; member
/linux/include/linux/dsa/
H A Dloop.h37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c40 } vlans[2]; member
360 data.vlan.vlans[data.vlan.num].id = act->vlan.vid; in mtk_flow_offload_replace()
361 data.vlan.vlans[data.vlan.num].proto = act->vlan.proto; in mtk_flow_offload_replace()
459 mtk_foe_entry_set_vlan(eth, &foe, data.vlan.vlans[i].id); in mtk_flow_offload_replace()
/linux/drivers/net/ethernet/intel/ice/
H A 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()
H A Dice_eswitch_br.h50 struct xarray vlans; member
/linux/drivers/net/dsa/
H A Dvitesse-vsc73xx.h60 struct list_head vlans; member
H A 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/include/linux/mlx5/
H A Dvport.h115 u16 vlans[],
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_priv.h185 struct xarray vlans; member
H A 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/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.h159 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
H A Dqed_sriov.c1734 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/net/mac80211/
H A Dkey.c69 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count()
982 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_reenable_keys()
1152 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
1176 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
H A Diface.c577 WARN_ON(!list_empty(&sdata->u.ap.vlans)); in ieee80211_do_stop()
813 list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, in ieee80211_stop()
1334 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open()
1889 INIT_LIST_HEAD(&sdata->u.ap.vlans); in ieee80211_setup_sdata()
1960 if (!list_empty(&sdata->u.ap.vlans)) in ieee80211_runtime_change_iftype()
H A Dsta_info.h954 int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans,
H A Dlink.c23 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_update_apvlan_links()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v1.c509 ste_ctx->set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_tx()
539 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_tx()
547 attr->vlans.headers[i]); in dr_ste_v1_set_actions_tx()
697 ste_ctx->set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_rx()
728 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_rx()
739 attr->vlans.headers[i]); in dr_ste_v1_set_actions_rx()
/linux/drivers/net/ethernet/mscc/
H A 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()
3192 INIT_LIST_HEAD(&ocelot->vlans); in ocelot_init()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k.h518 u16 glort, bool vlans);
H A Dfm10k_netdev.c724 u16 glort, bool vlans) in fm10k_clear_macvlan_queue() argument
742 if (vlans) { in fm10k_clear_macvlan_queue()
/linux/net/bridge/
H A Dbr_vlan.c2288 int err, vlans = 0; in br_vlan_rtm_process() local
2323 vlans++; in br_vlan_rtm_process()
2327 if (!vlans) { in br_vlan_rtm_process()

12