Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c568 static struct mlxsw_sp_port_vlan *
574 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge() local
576 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_bridge()
578 if (!mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_find_by_bridge()
580 if (mlxsw_sp_port_vlan->bridge_port->bridge_device != in mlxsw_sp_port_vlan_find_by_bridge()
584 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
586 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge()
592 static struct mlxsw_sp_port_vlan*
596 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_fid() local
598 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_fid()
[all …]
H A Dspectrum.h290 struct mlxsw_sp_port_vlan { struct
353 struct mlxsw_sp_port_vlan *default_vlan;
491 static inline struct mlxsw_sp_port_vlan *
495 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid() local
497 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_vid()
499 if (mlxsw_sp_port_vlan->vid == vid) in mlxsw_sp_port_vlan_find_by_vid()
500 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid()
655 mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
700 struct mlxsw_sp_port_vlan *
702 void mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
[all …]
H A Dspectrum.c1058 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, *tmp; in mlxsw_sp_port_vlan_flush() local
1060 list_for_each_entry_safe(mlxsw_sp_port_vlan, tmp, in mlxsw_sp_port_vlan_flush()
1063 mlxsw_sp_port_vlan->vid == MLXSW_SP_DEFAULT_VID) in mlxsw_sp_port_vlan_flush()
1065 mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_flush()
1070 mlxsw_sp_port_vlan_cleanup(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_port_vlan_cleanup() argument
1072 if (mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_cleanup()
1073 mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
1074 else if (mlxsw_sp_port_vlan->fid) in mlxsw_sp_port_vlan_cleanup()
1075 mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
1078 struct mlxsw_sp_port_vlan *
[all …]
H A Dspectrum_fid.c808 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vp_mode_trans() local
811 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vp_mode_trans()
813 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vp_mode_trans()
814 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans()
834 list_for_each_entry_continue_reverse(mlxsw_sp_port_vlan, in mlxsw_sp_port_vp_mode_trans()
836 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vp_mode_trans()
837 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans()
850 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_mode_trans() local
854 list_for_each_entry_reverse(mlxsw_sp_port_vlan, in mlxsw_sp_port_vlan_mode_trans()
856 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vlan_mode_trans()
[all …]
H A Dspectrum_router.c8646 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_rif_subport_params_init() argument
8648 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init()
8650 params->vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_rif_subport_params_init()
8892 __mlxsw_sp_port_vlan_router_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, in __mlxsw_sp_port_vlan_router_join() argument
8896 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_join()
8899 u16 vid = mlxsw_sp_port_vlan->vid; in __mlxsw_sp_port_vlan_router_join()
8909 mlxsw_sp_rif_subport_params_init(&params, mlxsw_sp_port_vlan); in __mlxsw_sp_port_vlan_router_join()
8929 mlxsw_sp_port_vlan->fid = fid; in __mlxsw_sp_port_vlan_router_join()
8944 __mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in __mlxsw_sp_port_vlan_router_leave() argument
8946 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_leave()
[all …]