/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() 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()
|
D | lantiq_gswip.c | 275 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/ |
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() 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 …]
|
D | b53_priv.h | 143 struct b53_vlan *vlans; member
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 466 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 …]
|
D | fnic.h | 293 struct list_head vlans; member
|
D | fnic_main.c | 783 INIT_LIST_HEAD(&fnic->vlans); in fnic_probe()
|
/drivers/net/ethernet/freescale/dpaa2/ |
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() 397 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink() [all …]
|
D | dpaa2-switch.h | 153 u8 vlans[VLAN_VID_MASK + 1]; member 178 u8 vlans[VLAN_VID_MASK + 1]; member
|
D | dpaa2-switch-flower.c | 430 !(port_priv->vlans[vlan] & ETHSW_VLAN_MEMBER)) { in dpaa2_switch_block_add_mirror()
|
/drivers/net/ |
D | macvlan.c | 46 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/ |
D | bridge_priv.h | 59 struct xarray vlans; member
|
D | bridge.c | 752 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/ |
D | en_fs.c | 140 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()
|
D | vport.c | 369 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/ |
D | qed_sriov.h | 159 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
|
D | qed_sriov.c | 1732 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/ |
D | dr_ste_v1.c | 532 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()
|
D | dr_action.c | 690 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()
|
D | dr_ste_v0.c | 431 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()
|
D | dr_types.h | 278 } vlans; member
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k.h | 517 u16 glort, bool vlans);
|
D | fm10k_netdev.c | 724 u16 glort, bool vlans) in fm10k_clear_macvlan_queue() argument 742 if (vlans) { in fm10k_clear_macvlan_queue()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 438 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()
|
D | qlcnic_main.c | 1362 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()
|