Home
last modified time | relevance | path

Searched defs:mlxsw_sp_port (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c26 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 …]
Dspectrum_qdisc.c100 mlxsw_sp_qdisc_find(struct mlxsw_sp_port *mlxsw_sp_port, u32 parent, in mlxsw_sp_qdisc_find()
121 mlxsw_sp_qdisc_find_by_handle(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) in mlxsw_sp_qdisc_find_by_handle()
140 mlxsw_sp_qdisc_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_destroy()
171 mlxsw_sp_qdisc_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, in mlxsw_sp_qdisc_replace()
234 mlxsw_sp_qdisc_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_stats()
248 mlxsw_sp_qdisc_get_xstats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_xstats()
293 mlxsw_sp_qdisc_collect_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_collect_tc_stats()
339 mlxsw_sp_qdisc_get_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_tc_stats()
357 mlxsw_sp_tclass_congestion_enable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_tclass_congestion_enable()
383 mlxsw_sp_tclass_congestion_disable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_tclass_congestion_disable()
[all …]
Dspectrum.c260 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set()
291 int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set()
303 static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dev_addr_set()
314 static int mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dev_addr_init()
324 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()
339 static int mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) in mlxsw_sp_port_mtu_set()
352 static int mlxsw_sp_port_swid_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 swid) in mlxsw_sp_port_swid_set()
361 int mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_port_vp_mode_set()
370 int mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_learning_set()
387 static int __mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_port_pvid_set()
[all …]
Dspectrum_matchall.c26 mlxsw_sp_mall_port_mirror_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add()
69 mlxsw_sp_mall_port_mirror_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_del()
84 static int mlxsw_sp_mall_port_sample_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_sample_set()
95 mlxsw_sp_mall_port_sample_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_sample_add()
118 mlxsw_sp_mall_port_sample_del(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_mall_port_sample_del()
128 mlxsw_sp_mall_port_rule_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_rule_add()
143 mlxsw_sp_mall_port_rule_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_rule_del()
317 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_mall_port_bind()
337 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_mall_port_unbind()
Dspectrum.h246 struct mlxsw_sp_port *mlxsw_sp_port; member
273 struct mlxsw_sp_port { struct
275 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; argument
293 struct mlxsw_sp_port_mapping mapping; /* mapping is constant during the argument
294 * mlxsw_sp_port lifetime, however argument
301 struct mlxsw_sp_port_xstats xstats; argument
304 struct mlxsw_sp_port_sample __rcu *sample; argument
306 struct mlxsw_sp_port_vlan *default_vlan; argument
325 struct mlxsw_sp_port_type_speed_ops { argument
335 int (*ptys_max_speed)(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed); argument
[all …]
Dspectrum_flow.c35 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()
Dspectrum_switchdev.c330 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_create() local
408 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_bridge()
432 mlxsw_sp_port_vlan_find_by_fid(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_fid()
505 mlxsw_sp_port_bridge_vlan_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_stp_set()
522 static int mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_stp_state_set()
562 mlxsw_sp_port_bridge_vlan_flood_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_flood_set()
583 mlxsw_sp_bridge_port_flood_table_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_flood_table_set()
611 mlxsw_sp_port_bridge_vlan_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_learning_set()
629 mlxsw_sp_bridge_port_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_learning_set()
654 *mlxsw_sp_port, in mlxsw_sp_port_attr_br_pre_flags_set()
[all …]
Dspectrum_ptp.h110 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get()
117 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_set()
142 static inline void mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_get_stats()
181 mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_ptp_hwtstamp_get()
188 mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_ptp_hwtstamp_set()
213 static inline void mlxsw_sp2_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_get_stats()
Dspectrum_ethtool.c14 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 …]
Dspectrum_span.c971 static int mlxsw_sp_span_port_buffer_update(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_span_port_buffer_update()
983 mlxsw_sp_span_port_buffer_enable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_port_buffer_enable()
988 static void mlxsw_sp_span_port_buffer_disable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_port_buffer_disable()
1106 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_create()
1139 mlxsw_sp_span_analyzed_port_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_destroy()
1153 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_get()
1181 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_put()
1249 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_trigger_port_matches()
1258 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) in mlxsw_sp_span_trigger_port_enable()
1267 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) in mlxsw_sp_span_trigger_port_disable()
[all …]
Dspectrum_buffers.c138 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 …]
Dspectrum_ptp.c413 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
571 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_timestamp() local
616 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_ht_gc_collect() local
881 int mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get()
949 static int mlxsw_sp1_ptp_mtpppc_update(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_mtpppc_update()
988 static bool mlxsw_sp1_ptp_hwtstamp_enabled(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_ptp_hwtstamp_enabled()
994 mlxsw_sp1_ptp_port_shaper_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp1_ptp_port_shaper_set()
1003 static int mlxsw_sp1_ptp_port_shaper_check(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_ptp_port_shaper_check()
1029 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_shaper_work() local
[all …]
Dspectrum_fid.c350 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()
Dspectrum_acl_flex_actions.c140 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
Dspectrum_trap.c58 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_rx_listener()
86 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_drop_listener() local
112 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_acl_drop_listener() local
139 struct mlxsw_sp_port *mlxsw_sp_port; in __mlxsw_sp_rx_no_mark_listener() local
Dspectrum_acl_tcam.c368 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()
Dspectrum_nve.c867 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()
Dspectrum_flower.c221 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_flower_parse_meta() local
Dspectrum_acl.c408 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_fwd() local
Dspectrum_router.c2627 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_router_netevent_event() local
6629 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init() local
6678 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_router_join() local
6725 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_leave() local
6756 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event() local