| /Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_dcb.c | 26 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_dcbnl_ieee_getets() local 33 static int mlxsw_sp_port_ets_validate(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_ets_validate() 67 static int mlxsw_sp_port_headroom_ets_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_ets_set() 91 static int __mlxsw_sp_dcbnl_ieee_setets(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_dcbnl_ieee_setets() 151 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_dcbnl_ieee_setets() local 216 mlxsw_sp_port_dcb_app_default_prio(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dcb_app_default_prio() 229 mlxsw_sp_port_dcb_app_dscp_prio_map(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dcb_app_dscp_prio_map() 245 mlxsw_sp_port_dcb_app_prio_dscp_map(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dcb_app_prio_dscp_map() 263 mlxsw_sp_port_dcb_app_update_qpts(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dcb_app_update_qpts() 274 mlxsw_sp_port_dcb_app_update_qrwe(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dcb_app_update_qrwe() [all …]
|
| D | spectrum_qdisc.c | 144 mlxsw_sp_qdisc_find(struct mlxsw_sp_port *mlxsw_sp_port, u32 parent, in mlxsw_sp_qdisc_find() 170 mlxsw_sp_qdisc_find_by_handle(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) in mlxsw_sp_qdisc_find_by_handle() 191 mlxsw_sp_qdisc_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_destroy() 229 static int mlxsw_sp_qdisc_create(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_create() 289 mlxsw_sp_qdisc_change(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, in mlxsw_sp_qdisc_change() 324 mlxsw_sp_qdisc_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, in mlxsw_sp_qdisc_replace() 345 mlxsw_sp_qdisc_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_stats() 359 mlxsw_sp_qdisc_get_xstats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_xstats() 404 mlxsw_sp_qdisc_collect_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_collect_tc_stats() 450 mlxsw_sp_qdisc_get_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_tc_stats() [all …]
|
| D | spectrum_matchall.c | 26 mlxsw_sp_mall_port_mirror_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 77 mlxsw_sp_mall_port_mirror_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_del() 92 static int mlxsw_sp_mall_port_sample_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_sample_set() 103 mlxsw_sp_mall_port_sample_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_sample_add() 134 mlxsw_sp_mall_port_sample_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_sample_del() 151 mlxsw_sp_mall_port_rule_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_rule_add() 169 mlxsw_sp_mall_port_rule_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_rule_del() 335 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_bind() 357 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_mall_port_unbind() 380 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_mall_sample_add() [all …]
|
| D | spectrum.c | 262 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set() 293 int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set() 305 static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dev_addr_set() 316 static int mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dev_addr_init() 326 static int mlxsw_sp_port_max_mtu_get(struct mlxsw_sp_port *mlxsw_sp_port, int *p_max_mtu) in mlxsw_sp_port_max_mtu_get() 341 static int mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) in mlxsw_sp_port_mtu_set() 354 static int mlxsw_sp_port_swid_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 swid) in mlxsw_sp_port_swid_set() 363 int mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_port_vp_mode_set() 372 int mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_learning_set() 405 int mlxsw_sp_port_egress_ethtype_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_egress_ethtype_set() [all …]
|
| D | spectrum_switchdev.c | 342 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_create() local 433 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_bridge() 457 mlxsw_sp_port_vlan_find_by_fid(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_fid() 530 mlxsw_sp_port_bridge_vlan_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_stp_set() 547 static int mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_stp_state_set() 583 mlxsw_sp_port_bridge_vlan_flood_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_flood_set() 604 mlxsw_sp_bridge_port_flood_table_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_flood_table_set() 632 mlxsw_sp_port_bridge_vlan_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_learning_set() 650 mlxsw_sp_bridge_port_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_learning_set() 675 mlxsw_sp_port_attr_br_pre_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_pre_flags_set() [all …]
|
| D | spectrum_flow.c | 35 struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) in mlxsw_sp_flow_block_lookup() 54 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_flow_block_bind() 109 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_flow_block_unbind() 201 static int mlxsw_sp_setup_tc_block_bind(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_setup_tc_block_bind() 252 static void mlxsw_sp_setup_tc_block_unbind(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_setup_tc_block_unbind() 280 int mlxsw_sp_setup_tc_block_clsact(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_setup_tc_block_clsact()
|
| D | spectrum.h | 277 struct mlxsw_sp_port *mlxsw_sp_port; member 304 struct mlxsw_sp_port { struct 306 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; argument 324 struct mlxsw_sp_port_mapping mapping; /* mapping is constant during the argument 325 * mlxsw_sp_port lifetime, however argument 332 struct mlxsw_sp_port_xstats xstats; argument 336 struct mlxsw_sp_port_vlan *default_vlan; argument 355 struct mlxsw_sp_port_type_speed_ops { argument 365 int (*ptys_max_speed)(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed); argument 433 mlxsw_sp_port_is_pause_en(const struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_is_pause_en() [all …]
|
| D | spectrum_ptp.h | 103 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get() 110 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_set() 135 static inline void mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_get_stats() 174 mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_ptp_hwtstamp_get() 181 mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_ptp_hwtstamp_set() 206 static inline void mlxsw_sp2_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_get_stats()
|
| D | spectrum_ethtool.c | 14 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_drvinfo() local 139 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_link_ext_state() local 177 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_pauseparam() local 183 static int mlxsw_sp_port_pause_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_pause_set() 204 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_set_pauseparam() local 562 mlxsw_sp_port_get_transceiver_overheat_stats(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_get_transceiver_overheat_stats() 624 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_strings() local 686 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_set_phys_id() local 754 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in __mlxsw_sp_port_get_stats() local 778 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in __mlxsw_sp_port_get_env_stats() local [all …]
|
| D | spectrum_span.c | 977 static int mlxsw_sp_span_port_buffer_update(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_span_port_buffer_update() 989 mlxsw_sp_span_port_buffer_enable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_port_buffer_enable() 994 static void mlxsw_sp_span_port_buffer_disable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_port_buffer_disable() 1116 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_create() 1149 mlxsw_sp_span_analyzed_port_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_destroy() 1163 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_get() 1191 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_put() 1263 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_trigger_port_matches() 1272 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) in mlxsw_sp_span_trigger_port_enable() 1281 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) in mlxsw_sp_span_trigger_port_disable() [all …]
|
| D | spectrum_buffers.c | 138 static u32 mlxsw_sp_port_headroom_8x_adjust(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_8x_adjust() 383 void mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_bufs_reset_sizes() 435 static int mlxsw_sp_hdroom_configure_buffers(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_configure_buffers() 467 static int mlxsw_sp_hdroom_configure_priomap(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_configure_priomap() 491 static int mlxsw_sp_hdroom_configure_int_buf(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_configure_int_buf() 524 static int __mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_hdroom_configure() 579 int mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_configure() 585 static int mlxsw_sp_port_headroom_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_headroom_init() 963 static int mlxsw_sp_port_sb_cms_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_sb_cms_init() 1068 static int mlxsw_sp_port_sb_pms_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_sb_pms_init() [all …]
|
| D | spectrum_ptp.c | 413 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_packet_finish() local 530 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_packet() local 572 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_timestamp() local 619 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_ht_gc_collect() local 884 int mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get() 952 static int mlxsw_sp1_ptp_mtpppc_update(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_mtpppc_update() 991 static bool mlxsw_sp1_ptp_hwtstamp_enabled(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_ptp_hwtstamp_enabled() 997 mlxsw_sp1_ptp_port_shaper_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp1_ptp_port_shaper_set() 1006 static int mlxsw_sp1_ptp_port_shaper_check(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_ptp_port_shaper_check() 1032 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_shaper_work() local [all …]
|
| D | spectrum_acl_flex_actions.c | 140 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_act_mirror_add() local 164 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_act_mirror_del() local 240 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp2_act_sampler_add() local 281 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp2_act_sampler_del() local
|
| D | spectrum_fid.c | 350 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map() 358 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap() 506 static int mlxsw_sp_port_vp_mode_trans(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_vp_mode_trans() 550 static void mlxsw_sp_port_vlan_mode_trans(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_vlan_mode_trans() 572 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_fid_8021d_port_vid_map() 601 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_8021d_port_vid_unmap() 783 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_fid_rfid_port_vid_map() 808 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_rfid_port_vid_unmap() 1099 int mlxsw_sp_port_fids_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_fids_init() 1112 void mlxsw_sp_port_fids_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_fids_fini()
|
| D | spectrum_trap.c | 64 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_rx_listener() 92 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_drop_listener() local 118 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_acl_drop_listener() local 145 struct mlxsw_sp_port *mlxsw_sp_port; in __mlxsw_sp_rx_no_mark_listener() local 244 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_psample_md_init() local 266 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_sample_listener() local 301 struct mlxsw_sp_port *mlxsw_sp_port, *mlxsw_sp_port_tx; in mlxsw_sp_rx_sample_tx_listener() local 354 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_sample_acl_listener() local
|
| D | spectrum_acl_tcam.c | 368 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_bind() 383 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_unbind() 1634 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_bind() 1646 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_unbind() 1775 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_bind() 1785 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_unbind()
|
| D | spectrum_nve.c | 867 int mlxsw_sp_port_nve_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_init() 876 void mlxsw_sp_port_nve_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_fini()
|
| D | spectrum_flower.c | 244 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_flower_parse_meta() local
|
| D | spectrum_acl.c | 408 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_fwd() local 699 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_sample() local
|
| D | spectrum_router.c | 2739 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_router_netevent_event() local 8134 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init() local 8183 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_join() local 8230 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_leave() local 8282 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event() local
|