Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c407 static struct mlxsw_sp_port_vlan *
413 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge() local
415 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_bridge()
417 if (!mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_find_by_bridge()
419 if (mlxsw_sp_port_vlan->bridge_port->bridge_device != in mlxsw_sp_port_vlan_find_by_bridge()
423 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
425 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_bridge()
431 static struct mlxsw_sp_port_vlan*
435 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_fid() local
437 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.h245 struct mlxsw_sp_port_vlan { struct
307 struct mlxsw_sp_port_vlan *default_vlan;
420 static inline struct mlxsw_sp_port_vlan *
424 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid() local
426 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_vid()
428 if (mlxsw_sp_port_vlan->vid == vid) in mlxsw_sp_port_vlan_find_by_vid()
429 return mlxsw_sp_port_vlan; in mlxsw_sp_port_vlan_find_by_vid()
557 mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
598 struct mlxsw_sp_port_vlan *
600 void mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
[all …]
H A 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 …]
H A Dspectrum.c863 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, *tmp; in mlxsw_sp_port_vlan_flush() local
865 list_for_each_entry_safe(mlxsw_sp_port_vlan, tmp, in mlxsw_sp_port_vlan_flush()
868 mlxsw_sp_port_vlan->vid == MLXSW_SP_DEFAULT_VID) in mlxsw_sp_port_vlan_flush()
870 mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_flush()
875 mlxsw_sp_port_vlan_cleanup(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_port_vlan_cleanup() argument
877 if (mlxsw_sp_port_vlan->bridge_port) in mlxsw_sp_port_vlan_cleanup()
878 mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
879 else if (mlxsw_sp_port_vlan->fid) in mlxsw_sp_port_vlan_cleanup()
880 mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_cleanup()
883 struct mlxsw_sp_port_vlan *
[all …]
H A Dspectrum_router.c6630 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_rif_subport_params_init() argument
6632 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init()
6634 params->vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_rif_subport_params_init()
6677 mlxsw_sp_port_vlan_router_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, in mlxsw_sp_port_vlan_router_join() argument
6681 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_router_join()
6686 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_router_join()
6691 mlxsw_sp_rif_subport_params_init(&params, mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_router_join()
6711 mlxsw_sp_port_vlan->fid = fid; in mlxsw_sp_port_vlan_router_join()
6726 __mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in __mlxsw_sp_port_vlan_router_leave() argument
6728 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_leave()
[all …]