/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 568 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_vla in mlxsw_sp_port_vlan_find_by_fid() local 670 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_bridge_vlan_stp_set() local 724 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_bridge_vlan_flood_set() local 772 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_vlans_flood_set() local 830 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_bridge_vlan_learning_set() local 1345 mlxsw_sp_port_vlan_fid_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, struct mlxsw_sp_bridge_port *bridge_port, struct netlink_ext_ack *extack) mlxsw_sp_port_vlan_fid_join() argument 1396 mlxsw_sp_port_vlan_fid_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_fid_leave() argument 1424 mlxsw_sp_port_vlan_bridge_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, struct mlxsw_sp_bridge_port *bridge_port, struct netlink_ext_ack *extack) mlxsw_sp_port_vlan_bridge_join() argument 1477 mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_bridge_leave() argument 1519 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_port_vlan_add() local 1860 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_fdb_set() local 2183 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_mdb_add() local 2293 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_port_vlan_del() local 2334 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_mdb_del() local 2629 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_is_br_member() local 2648 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_8021d_port_join() local 2688 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_8021d_port_leave() local 3049 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_fdb_notify_mac_process() local 3117 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_fdb_notify_mac_lag_process() local [all...] |
H A D | spectrum.c | 1058 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 in mlxsw_sp_port_vlan_cleanup() 1081 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_vlan_create() local 1110 mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_destroy() argument 1139 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_kill_vid() local 1610 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_create() local [all...] |
H A D | spectrum.h | 290 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); [all...] |
H A D | spectrum_fid.c | 808 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 [all...] |
H A D | spectrum_router.c | 8645 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_rif_subport_params_init() 8647 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init() 8649 params->vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_rif_subport_params_init() 8891 __mlxsw_sp_port_vlan_router_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, in __mlxsw_sp_port_vlan_router_join() argument 8895 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_join() 8898 u16 vid = mlxsw_sp_port_vlan->vid; in __mlxsw_sp_port_vlan_router_join() 8908 mlxsw_sp_rif_subport_params_init(¶ms, mlxsw_sp_port_vlan); in __mlxsw_sp_port_vlan_router_join() 8928 mlxsw_sp_port_vlan in __mlxsw_sp_port_vlan_router_join() 8644 mlxsw_sp_rif_subport_params_init(struct mlxsw_sp_rif_params *params, struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_rif_subport_params_init() argument 8943 __mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) __mlxsw_sp_port_vlan_router_leave() argument 8962 mlxsw_sp_port_vlan_router_join_existing(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, struct net_device *l3_dev, struct netlink_ext_ack *extack) mlxsw_sp_port_vlan_router_join_existing() argument 8978 mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_router_leave() argument 8993 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_inetaddr_port_vlan_event() local 9904 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_vid_router_join_existing() local 9919 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_vid_router_leave() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 407 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_vla in mlxsw_sp_port_vlan_find_by_fid() local 509 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_bridge_vlan_stp_set() local 567 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_bridge_vlan_flood_set() local 615 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_bridge_vlan_learning_set() local 956 mlxsw_sp_port_vlan_fid_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, struct mlxsw_sp_bridge_port *bridge_port, struct netlink_ext_ack *extack) mlxsw_sp_port_vlan_fid_join() argument 1007 mlxsw_sp_port_vlan_fid_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_fid_leave() argument 1035 mlxsw_sp_port_vlan_bridge_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, struct mlxsw_sp_bridge_port *bridge_port, struct netlink_ext_ack *extack) mlxsw_sp_port_vlan_bridge_join() argument 1088 mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_bridge_leave() argument 1130 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_port_vlan_add() local 1412 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_fdb_set() local 1688 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_mdb_add() local 1820 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_port_vlan_del() local 1883 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_mdb_del() local 2111 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_is_br_member() local 2130 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_8021d_port_join() local 2157 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_bridge_8021d_port_leave() local 2411 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_fdb_notify_mac_process() local 2475 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_fdb_notify_mac_lag_process() local [all...] |
H A D | spectrum.c | 863 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 in mlxsw_sp_port_vlan_cleanup() 886 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_vlan_create() local 915 mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_destroy() argument 944 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_kill_vid() local 1393 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_port_create() local [all...] |
H A D | spectrum.h | 245 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); [all...] |
H A D | spectrum_fid.c | 509 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 [all...] |
H A D | spectrum_router.c | 6630 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) in mlxsw_sp_rif_subport_params_init() 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(¶ms, mlxsw_sp_port_vlan); in mlxsw_sp_port_vlan_router_join() 6711 mlxsw_sp_port_vlan in mlxsw_sp_port_vlan_router_join() 6629 mlxsw_sp_rif_subport_params_init(struct mlxsw_sp_rif_params *params, struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_rif_subport_params_init() argument 6726 __mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) __mlxsw_sp_port_vlan_router_leave() argument 6745 mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan) mlxsw_sp_port_vlan_router_leave() argument 6760 struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; mlxsw_sp_inetaddr_port_vlan_event() local [all...] |