/kernel/linux/linux-5.10/drivers/net/dsa/ |
H A 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() 215 if (vlan->vid_end > ARRAY_SIZE(ps->vlans)) in dsa_loop_port_vlan_prepare() 235 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_add() 264 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_del()
|
H A D | lantiq_gswip.c | 273 struct gswip_vlan vlans[64]; member 896 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create() 897 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create() 921 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create() 922 priv->vlans[idx].vid = vid; in gswip_vlan_active_create() 923 priv->vlans[idx].fid = fid; in gswip_vlan_active_create() 939 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove() 956 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware() 957 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware() 1019 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); in gswip_vlan_add_aware() [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/ |
H A 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() 214 if (vlan->vid >= ARRAY_SIZE(ps->vlans)) in dsa_loop_port_vlan_add() 220 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_add() 249 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_del()
|
H A D | lantiq_gswip.c | 285 struct gswip_vlan vlans[64]; member 919 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create() 920 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create() 944 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create() 945 priv->vlans[idx].vid = vid; in gswip_vlan_active_create() 946 priv->vlans[idx].fid = fid; in gswip_vlan_active_create() 962 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove() 979 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware() 980 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware() 1042 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); in gswip_vlan_add_aware() [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/b53/ |
H A D | b53_common.c | 765 v = &dev->vlans[def_vid]; in b53_configure_vlan() 777 v = &dev->vlans[vid]; in b53_configure_vlan() 893 /* reset vlans */ in b53_reset_switch() 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() 1514 vl = &dev->vlans[vlan->vid]; in b53_vlan_add() 1550 vl = &dev->vlans[vlan->vid]; in b53_vlan_del() 1945 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave() 2322 u16 vlans; member [all...] |
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/ |
H A D | ethsw.h | 55 u8 vlans[VLAN_VID_MASK + 1]; member 71 u8 vlans[VLAN_VID_MASK + 1]; member
|
H A D | ethsw.c | 41 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan() 102 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid() 103 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid() 128 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan() 141 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan() 152 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan() 214 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_set_stp_state() 237 if (!ethsw->vlans[vid]) in dpaa2_switch_dellink() 245 ethsw->vlans[vid] = 0; in dpaa2_switch_dellink() 249 ppriv_local->vlans[vi in dpaa2_switch_dellink() [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/b53/ |
H A D | b53_common.c | 721 v = &dev->vlans[vid]; in b53_configure_vlan() 837 /* reset vlans */ in b53_reset_switch() 838 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch() 1007 vl = &dev->vlans[i]; in b53_devlink_vlan_table_get() 1434 vl = &dev->vlans[vid]; in b53_vlan_add() 1471 vl = &dev->vlans[vid]; in b53_vlan_del() 1859 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave() 2239 u16 vlans; member 2262 .vlans [all...] |
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
H A D | fnic_fcs.c | 464 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp() 472 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp() 481 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp() 503 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc() 522 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check() 527 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check() 1314 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans() 1315 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans() 1341 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer() 1343 /* no vlans availabl in fnic_handle_fip_timer() [all...] |
/kernel/linux/linux-6.6/net/dsa/ |
H A D | tag_8021q.c | 75 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() 427 INIT_LIST_HEAD(&ctx->vlans); in dsa_tag_8021q_register() 450 list_for_each_entry_safe(v, n, &ctx->vlans, list) { in dsa_tag_8021q_unregister()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.h | 153 u8 vlans[VLAN_VID_MASK + 1]; member 180 u8 vlans[VLAN_VID_MASK + 1]; member
|
H A D | dpaa2-switch.c | 204 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[vi in dpaa2_switch_dellink() [all...] |
/kernel/linux/linux-5.10/include/linux/dsa/ |
H A D | loop.h | 36 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
|
/kernel/linux/linux-6.6/include/linux/dsa/ |
H A D | loop.h | 37 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
|
/kernel/linux/linux-6.6/drivers/scsi/fnic/ |
H A D | fnic_fcs.c | 454 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp() 462 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp() 471 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp() 493 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc() 512 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check() 517 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check() 1304 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans() 1305 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans() 1331 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer() 1333 /* no vlans availabl in fnic_handle_fip_timer() [all...] |
/kernel/linux/linux-6.6/drivers/net/ |
H A D | macvlan.c | 46 struct list_head vlans; member 499 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame() 1260 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create() 1554 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink() 1779 list_for_each_entry(vlan, &port->vlans, list) { in update_port_bc_queue_len() 1803 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event() 1808 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1814 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1824 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event() 1837 list_for_each_entry_safe(vlan, next, &port->vlans, lis in macvlan_device_event() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.c | 318 vlan = xa_load(&port->vlans, vid); in ice_esw_br_port_vlan_lookup() 636 xa_erase(&port->vlans, vlan->vid); in ice_eswitch_br_vlan_cleanup() 647 xa_for_each(&port->vlans, index, vlan) in ice_eswitch_br_port_vlans_flush() 716 err = xa_insert(&port->vlans, vlan->vid, vlan, GFP_KERNEL); in ice_eswitch_br_vlan_create() 750 vlan = xa_load(&port->vlans, vid); in ice_eswitch_br_port_vlan_add() 778 vlan = xa_load(&port->vlans, vid); in ice_eswitch_br_port_vlan_del() 915 xa_init(&br_port->vlans); in ice_eswitch_br_port_init()
|
H A D | ice_eswitch_br.h | 49 struct xarray vlans; member
|
/kernel/linux/linux-5.10/drivers/net/ |
H A D | macvlan.c | 46 struct list_head vlans; member 485 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame() 1215 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create() 1498 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink() 1710 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event() 1715 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1722 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1732 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event() 1745 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event() 1756 /* Propagate to all vlans */ in macvlan_device_event() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_action.c | 370 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() 761 attr.vlans.count++; in mlx5dr_actions_build_ste_arr() 765 if (attr.vlans.count == MAX_VLANS) in mlx5dr_actions_build_ste_arr() 768 attr.vlans.headers[attr.vlans.count++] = action->push_vlan.vlan_hdr; in mlx5dr_actions_build_ste_arr()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
H A D | vport.h | 121 u16 vlans[],
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_priv.h | 185 struct xarray vlans; member
|
/kernel/linux/linux-6.6/include/linux/mlx5/ |
H A D | vport.h | 113 u16 vlans[],
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 116 u16 *vlans; in mlx5e_vport_context_update_vlans() local 129 "netdev vlans list size (%d) > (%d) max vport list size, some vlans will be dropped\n", in mlx5e_vport_context_update_vlans() 134 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans() 135 if (!vlans) in mlx5e_vport_context_update_vlans() 142 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans() 145 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans() 147 netdev_err(ndev, "Failed to modify vport vlans list err(%d)\n", in mlx5e_vport_context_update_vlans() 150 kfree(vlans); in mlx5e_vport_context_update_vlans() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 174 u16 *vlans; in mlx5e_vport_context_update_vlans() local 186 fs_warn(fs, "netdev vlans list size (%d) > (%d) max vport list size, some vlans will be dropped\n", in mlx5e_vport_context_update_vlans() 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() 204 fs_err(fs, "Failed to modify vport vlans list err(%d)\n", in mlx5e_vport_context_update_vlans() 207 kvfree(vlans); in mlx5e_vport_context_update_vlans() [all...] |