Home
last modified time | relevance | path

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

12

/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()
212 if (vlan->vid >= ARRAY_SIZE(ps->vlans)) in dsa_loop_port_vlan_add()
218 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_add()
247 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_del()
Dlantiq_gswip.c275 struct gswip_vlan vlans[64]; member
894 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
895 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create()
919 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create()
920 priv->vlans[idx].vid = vid; in gswip_vlan_active_create()
921 priv->vlans[idx].fid = fid; in gswip_vlan_active_create()
937 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove()
954 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
955 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware()
1017 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware()
[all …]
/drivers/net/dsa/b53/
Db53_common.c765 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()
1495 vl = &dev->vlans[vlan->vid]; in b53_vlan_add()
1531 vl = &dev->vlans[vlan->vid]; in b53_vlan_del()
1904 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave()
2281 u16 vlans; member
2304 .vlans = 16,
2315 .vlans = 256,
[all …]
Db53_priv.h143 struct b53_vlan *vlans; member
/drivers/scsi/fnic/
Dfnic_fcs.c466 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp()
474 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp()
483 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp()
505 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc()
524 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check()
529 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check()
1316 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans()
1317 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans()
1343 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer()
1354 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer()
[all …]
Dfnic.h293 struct list_head vlans; member
Dfnic_main.c783 INIT_LIST_HEAD(&fnic->vlans); in fnic_probe()
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c205 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()
397 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink()
[all …]
Ddpaa2-switch.h153 u8 vlans[VLAN_VID_MASK + 1]; member
178 u8 vlans[VLAN_VID_MASK + 1]; member
Ddpaa2-switch-flower.c430 !(port_priv->vlans[vlan] & ETHSW_VLAN_MEMBER)) { in dpaa2_switch_block_add_mirror()
/drivers/net/
Dmacvlan.c46 struct list_head vlans; member
490 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame()
1220 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create()
1509 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink()
1726 list_for_each_entry(vlan, &port->vlans, list) { in update_port_bc_queue_len()
1750 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
1755 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1762 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event()
1772 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event()
1785 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge_priv.h59 struct xarray vlans; member
Dbridge.c752 return xa_load(&port->vlans, vid); in mlx5_esw_bridge_vlan_lookup()
862 err = xa_insert(&port->vlans, vid, vlan, GFP_KERNEL); in mlx5_esw_bridge_vlan_create()
883 xa_erase(&port->vlans, vlan->vid); in mlx5_esw_bridge_vlan_erase()
918 xa_for_each(&port->vlans, index, vlan) in mlx5_esw_bridge_port_vlans_flush()
1108 xa_init(&port->vlans); in mlx5_esw_bridge_vport_init()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs.c140 u16 *vlans; in mlx5e_vport_context_update_vlans() local
158 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans()
159 if (!vlans) in mlx5e_vport_context_update_vlans()
166 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans()
169 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans()
174 kfree(vlans); in mlx5e_vport_context_update_vlans()
Dvport.c369 u16 vlans[], in mlx5_modify_nic_vport_vlans() argument
410 MLX5_SET(vlan_layout, vlan_addr, vlan, vlans[i]); in mlx5_modify_nic_vport_vlans()
/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.h159 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
Dqed_sriov.c1732 if (!p_vf->shadow_config.vlans[i].used) in qed_iov_reconfigure_unicast_vlan()
1736 filter.vlan = p_vf->shadow_config.vlans[i].vid; in qed_iov_reconfigure_unicast_vlan()
3114 if (p_vf->shadow_config.vlans[i].used && in qed_iov_vf_update_vlan_shadow()
3115 p_vf->shadow_config.vlans[i].vid == in qed_iov_vf_update_vlan_shadow()
3117 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow()
3130 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow()
3142 if (p_vf->shadow_config.vlans[i].used) in qed_iov_vf_update_vlan_shadow()
3145 p_vf->shadow_config.vlans[i].used = true; in qed_iov_vf_update_vlan_shadow()
3146 p_vf->shadow_config.vlans[i].vid = p_params->vlan; in qed_iov_vf_update_vlan_shadow()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v1.c532 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_tx()
560 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_tx()
568 attr->vlans.headers[i]); in dr_ste_v1_set_actions_tx()
681 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_rx()
705 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_rx()
716 attr->vlans.headers[i]); in dr_ste_v1_set_actions_rx()
Ddr_action.c690 attr.vlans.count++; in mlx5dr_actions_build_ste_arr()
700 if (attr.vlans.count == MLX5DR_MAX_VLANS) { in mlx5dr_actions_build_ste_arr()
705 attr.vlans.headers[attr.vlans.count++] = action->push_vlan->vlan_hdr; in mlx5dr_actions_build_ste_arr()
Ddr_ste_v0.c431 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v0_set_actions_tx()
439 attr->vlans.headers[i], in dr_ste_v0_set_actions_tx()
500 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v0_set_actions_rx()
Ddr_types.h278 } vlans; member
/drivers/net/ethernet/intel/fm10k/
Dfm10k.h517 u16 glort, bool vlans);
Dfm10k_netdev.c724 u16 glort, bool vlans) in fm10k_clear_macvlan_queue() argument
742 if (vlans) { in fm10k_clear_macvlan_queue()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c438 u16 *vlans; in qlcnic_sriov_set_guest_vlan_mode() local
460 vlans = (u16 *)&cmd->rsp.arg[3]; in qlcnic_sriov_set_guest_vlan_mode()
462 sriov->allowed_vlans[i] = vlans[i]; in qlcnic_sriov_set_guest_vlan_mode()
Dqlcnic_main.c1362 set_bit(vid, adapter->vlans); in qlcnic_vlan_rx_add()
1383 clear_bit(vid, adapter->vlans); in qlcnic_vlan_rx_del()
4121 for_each_set_bit(vid, adapter->vlans, VLAN_N_VID) { in qlcnic_restore_indev_addr()

12