Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c483 static struct mlxsw_sp_port_vlan *
489 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge() local
491 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_bridge()
493 if (!mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_find_by_bridge()
495 if (mlxsw_sp_port_vlan->bridge_port->bridge_device != in mlxsw_sp_port_vlan_find_by_bridge()
499 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
501 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge()
507 static struct mlxsw_sp_port_vlan*
511 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_fid() local
513 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_fid()
[all …]
Dspectrum.h288 struct mlxsw_sp_port_vlan { struct
350 struct mlxsw_sp_port_vlan *default_vlan;
488 static inline struct mlxsw_sp_port_vlan *
492 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid() local
494 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_vid()
496 if (mlxsw_sp_port_vlan->vid == vid) in mlxsw_sp_port_vlan_find_by_vid()
497 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid()
652 mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
695 struct mlxsw_sp_port_vlan *
697 void mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
[all …]
Dspectrum.c1040 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, *tmp; in mlxsw_sp_port_vlan_flush() local
1042 list_for_each_entry_safe(mlxsw_sp_port_vlan, tmp, in mlxsw_sp_port_vlan_flush()
1045 mlxsw_sp_port_vlan->vid == MLXSW_SP_DEFAULT_VID) in mlxsw_sp_port_vlan_flush()
1047 mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_flush()
1052 mlxsw_sp_port_vlan_cleanup(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_port_vlan_cleanup() argument
1054 if (mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_cleanup()
1055 mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
1056 else if (mlxsw_sp_port_vlan->fid) in mlxsw_sp_port_vlan_cleanup()
1057 mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
1060 struct mlxsw_sp_port_vlan *
[all …]
Dspectrum_fid.c818 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vp_mode_trans() local
821 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vp_mode_trans()
823 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vp_mode_trans()
824 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans()
844 list_for_each_entry_continue_reverse(mlxsw_sp_port_vlan, in mlxsw_sp_port_vp_mode_trans()
846 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vp_mode_trans()
847 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans()
860 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_mode_trans() local
864 list_for_each_entry_reverse(mlxsw_sp_port_vlan, in mlxsw_sp_port_vlan_mode_trans()
866 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vlan_mode_trans()
[all …]
Dspectrum_router.c8221 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_rif_subport_params_init() argument
8223 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init()
8225 params->vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_rif_subport_params_init()
8467 __mlxsw_sp_port_vlan_router_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, in __mlxsw_sp_port_vlan_router_join() argument
8471 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_join()
8476 u16 vid = mlxsw_sp_port_vlan->vid; in __mlxsw_sp_port_vlan_router_join()
8481 mlxsw_sp_rif_subport_params_init(&params, mlxsw_sp_port_vlan); in __mlxsw_sp_port_vlan_router_join()
8501 mlxsw_sp_port_vlan->fid = fid; in __mlxsw_sp_port_vlan_router_join()
8516 __mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in __mlxsw_sp_port_vlan_router_leave() argument
8518 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_leave()
[all …]