Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c432 static struct mlxsw_sp_port_vlan *
438 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge() local
440 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_bridge()
442 if (!mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_find_by_bridge()
444 if (mlxsw_sp_port_vlan->bridge_port->bridge_device != in mlxsw_sp_port_vlan_find_by_bridge()
448 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
450 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge()
456 static struct mlxsw_sp_port_vlan*
460 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_fid() local
462 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_fid()
[all …]
Dspectrum.h275 struct mlxsw_sp_port_vlan { struct
336 struct mlxsw_sp_port_vlan *default_vlan;
450 static inline struct mlxsw_sp_port_vlan *
454 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid() local
456 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_vid()
458 if (mlxsw_sp_port_vlan->vid == vid) in mlxsw_sp_port_vlan_find_by_vid()
459 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid()
602 mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
645 struct mlxsw_sp_port_vlan *
647 void mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
[all …]
Dspectrum_fid.c509 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vp_mode_trans() local
512 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vp_mode_trans()
514 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vp_mode_trans()
515 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans()
535 list_for_each_entry_continue_reverse(mlxsw_sp_port_vlan, in mlxsw_sp_port_vp_mode_trans()
537 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vp_mode_trans()
538 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans()
553 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_mode_trans() local
557 list_for_each_entry_reverse(mlxsw_sp_port_vlan, in mlxsw_sp_port_vlan_mode_trans()
559 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vlan_mode_trans()
[all …]
Dspectrum.c906 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, *tmp; in mlxsw_sp_port_vlan_flush() local
908 list_for_each_entry_safe(mlxsw_sp_port_vlan, tmp, in mlxsw_sp_port_vlan_flush()
911 mlxsw_sp_port_vlan->vid == MLXSW_SP_DEFAULT_VID) in mlxsw_sp_port_vlan_flush()
913 mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_flush()
918 mlxsw_sp_port_vlan_cleanup(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_port_vlan_cleanup() argument
920 if (mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_cleanup()
921 mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
922 else if (mlxsw_sp_port_vlan->fid) in mlxsw_sp_port_vlan_cleanup()
923 mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
926 struct mlxsw_sp_port_vlan *
[all …]
Dspectrum_router.c8132 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_rif_subport_params_init() argument
8134 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init()
8136 params->vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_rif_subport_params_init()
8179 __mlxsw_sp_port_vlan_router_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, in __mlxsw_sp_port_vlan_router_join() argument
8183 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_join()
8188 u16 vid = mlxsw_sp_port_vlan->vid; in __mlxsw_sp_port_vlan_router_join()
8193 mlxsw_sp_rif_subport_params_init(&params, mlxsw_sp_port_vlan); in __mlxsw_sp_port_vlan_router_join()
8213 mlxsw_sp_port_vlan->fid = fid; in __mlxsw_sp_port_vlan_router_join()
8228 __mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in __mlxsw_sp_port_vlan_router_leave() argument
8230 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_leave()
[all …]