Home
last modified time | relevance | path

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

12

/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.h153 u8 vlans[VLAN_VID_MASK + 1]; member
180 u8 vlans[VLAN_VID_MASK + 1]; member
H A Ddpaa2-switch-flower.c433 !(port_priv->vlans[vlan] & ETHSW_VLAN_MEMBER)) { in dpaa2_switch_block_add_mirror()
/linux/drivers/net/
H A 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/include/linux/dsa/
H A Dloop.h37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
/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/drivers/net/ethernet/mellanox/mlx5/core/
H A 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()
H A Dvport.c370 u16 vlans[], in mlx5_modify_nic_vport_vlans() argument
411 MLX5_SET(vlan_layout, vlan_addr, vlan, vlans[i]); in mlx5_modify_nic_vport_vlans()
/linux/include/linux/mlx5/
H A Dvport.h114 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 Diface.c559 WARN_ON(!list_empty(&sdata->u.ap.vlans)); in ieee80211_do_stop()
765 list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, in ieee80211_stop()
1246 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open()
1765 INIT_LIST_HEAD(&sdata->u.ap.vlans); in ieee80211_setup_sdata()
1836 if (!list_empty(&sdata->u.ap.vlans)) in ieee80211_runtime_change_iftype()
H A Dsta_info.c1601 int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans, in __sta_info_flush() argument
1612 WARN_ON(vlans && sdata->vif.type != NL80211_IFTYPE_AP); in __sta_info_flush()
1613 WARN_ON(vlans && !sdata->bss); in __sta_info_flush()
1617 (!vlans || sdata->bss != sta->sdata->bss)) in __sta_info_flush()
/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()
3186 INIT_LIST_HEAD(&ocelot->vlans); in ocelot_init()
/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/intel/fm10k/
H A Dfm10k.h517 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/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sriov_common.c438 u16 *vlans; in qlcnic_sriov_set_guest_vlan_mode() local
462 vlans = (u16 *)&cmd->rsp.arg[3]; in qlcnic_sriov_set_guest_vlan_mode()
464 sriov->allowed_vlans[i] = vlans[i]; in qlcnic_sriov_set_guest_vlan_mode()
/linux/include/soc/mscc/
H A Docelot.h835 struct list_head vlans; member

12