Home
last modified time | relevance | path

Searched refs:bridge_vlan (Results 1 – 1 of 1) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c452 struct mlxsw_sp_bridge_vlan *bridge_vlan; in mlxsw_sp_bridge_vlan_find() local
454 list_for_each_entry(bridge_vlan, &bridge_port->vlans_list, list) { in mlxsw_sp_bridge_vlan_find()
455 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find()
456 return bridge_vlan; in mlxsw_sp_bridge_vlan_find()
465 struct mlxsw_sp_bridge_vlan *bridge_vlan; in mlxsw_sp_bridge_vlan_create() local
467 bridge_vlan = kzalloc(sizeof(*bridge_vlan), GFP_KERNEL); in mlxsw_sp_bridge_vlan_create()
468 if (!bridge_vlan) in mlxsw_sp_bridge_vlan_create()
471 INIT_LIST_HEAD(&bridge_vlan->port_vlan_list); in mlxsw_sp_bridge_vlan_create()
472 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create()
473 list_add(&bridge_vlan->list, &bridge_port->vlans_list); in mlxsw_sp_bridge_vlan_create()
[all …]