Home
last modified time | relevance | path

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

/Linux-v5.4/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_pg_prio_map(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_pg_prio_map()
91 static int mlxsw_sp_port_pg_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_pg_destroy()
113 static int mlxsw_sp_port_headroom_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_set()
150 static int __mlxsw_sp_dcbnl_ieee_setets(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_dcbnl_ieee_setets()
210 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_dcbnl_ieee_setets() local
275 mlxsw_sp_port_dcb_app_default_prio(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dcb_app_default_prio()
288 mlxsw_sp_port_dcb_app_dscp_prio_map(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dcb_app_dscp_prio_map()
304 mlxsw_sp_port_dcb_app_prio_dscp_map(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dcb_app_prio_dscp_map()
[all …]
Dspectrum_qdisc.c75 mlxsw_sp_qdisc_find(struct mlxsw_sp_port *mlxsw_sp_port, u32 parent, in mlxsw_sp_qdisc_find()
95 mlxsw_sp_qdisc_find_by_handle(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) in mlxsw_sp_qdisc_find_by_handle()
113 mlxsw_sp_qdisc_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_destroy()
131 mlxsw_sp_qdisc_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, in mlxsw_sp_qdisc_replace()
171 mlxsw_sp_qdisc_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_stats()
185 mlxsw_sp_qdisc_get_xstats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_get_xstats()
216 mlxsw_sp_tclass_congestion_enable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_tclass_congestion_enable()
242 mlxsw_sp_tclass_congestion_disable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_tclass_congestion_disable()
254 mlxsw_sp_setup_tc_qdisc_red_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
281 mlxsw_sp_qdisc_red_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_qdisc_red_destroy()
[all …]
Dspectrum.c553 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set()
584 static int mlxsw_sp_port_sample_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_sample_set()
594 static int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set()
606 static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dev_addr_set()
617 static int mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dev_addr_init()
627 static int mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) in mlxsw_sp_port_mtu_set()
648 static int mlxsw_sp_port_swid_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 swid) in mlxsw_sp_port_swid_set()
657 int mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_port_vp_mode_set()
666 int mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_learning_set()
683 static int __mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_port_pvid_set()
[all …]
Dspectrum.h211 struct mlxsw_sp_port *mlxsw_sp_port; member
238 struct mlxsw_sp_port { struct
240 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; argument
241 struct mlxsw_sp *mlxsw_sp;
242 u8 local_port;
243 u8 lagged:1,
244 split:1;
268 struct mlxsw_sp_port_xstats xstats; argument
271 struct mlxsw_sp_port_sample *sample; argument
273 struct mlxsw_sp_port_vlan *default_vlan; argument
[all …]
Dspectrum_switchdev.c261 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_create() local
338 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_bridge()
362 mlxsw_sp_port_vlan_find_by_fid(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_fid()
435 mlxsw_sp_port_bridge_vlan_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_stp_set()
452 static int mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_stp_state_set()
492 mlxsw_sp_port_bridge_vlan_flood_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_flood_set()
513 mlxsw_sp_bridge_port_flood_table_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_flood_table_set()
541 mlxsw_sp_port_bridge_vlan_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_learning_set()
559 mlxsw_sp_bridge_port_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_learning_set()
584 *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_ptp.c431 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_packet_finish() local
548 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_packet() local
589 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_timestamp() local
634 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_ht_gc_collect() local
899 int mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get()
962 static int mlxsw_sp1_ptp_mtpppc_update(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_mtpppc_update()
1001 static bool mlxsw_sp1_ptp_hwtstamp_enabled(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_ptp_hwtstamp_enabled()
1007 mlxsw_sp1_ptp_port_shaper_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp1_ptp_port_shaper_set()
1016 static int mlxsw_sp1_ptp_port_shaper_check(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_ptp_port_shaper_check()
1052 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_shaper_work() local
[all …]
Dspectrum_buffers.c297 static int mlxsw_sp_port_pb_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_pb_init()
321 static int mlxsw_sp_port_pb_prio_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_pb_prio_init()
333 static int mlxsw_sp_port_headroom_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_headroom_init()
679 static int mlxsw_sp_port_sb_cms_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_sb_cms_init()
784 static int mlxsw_sp_port_sb_pms_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_sb_pms_init()
971 int mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_buffers_init()
1073 struct mlxsw_sp_port *mlxsw_sp_port = in mlxsw_sp_sb_port_pool_get() local
1089 struct mlxsw_sp_port *mlxsw_sp_port = in mlxsw_sp_sb_port_pool_set() local
1115 struct mlxsw_sp_port *mlxsw_sp_port = in mlxsw_sp_sb_tc_pool_bind_get() local
1136 struct mlxsw_sp_port *mlxsw_sp_port = in mlxsw_sp_sb_tc_pool_bind_set() local
[all …]
Dspectrum_fid.c349 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map()
357 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap()
521 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_fid_8021q_port_vid_map()
539 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_8021q_port_vid_unmap()
649 static int mlxsw_sp_port_vp_mode_trans(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_vp_mode_trans()
693 static void mlxsw_sp_port_vlan_mode_trans(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_vlan_mode_trans()
715 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_fid_8021d_port_vid_map()
744 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_8021d_port_vid_unmap()
918 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_fid_rfid_port_vid_map()
943 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_rfid_port_vid_unmap()
[all …]
Dspectrum_trap.c61 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_rx_listener()
89 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_drop_listener() local
Dspectrum_acl.c44 struct mlxsw_sp_port *mlxsw_sp_port; member
228 struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) in mlxsw_sp_acl_block_lookup()
241 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_block_bind()
278 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_block_unbind()
532 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_fwd() local
Dspectrum_acl_tcam.c361 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_bind()
376 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_unbind()
1599 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_bind()
1611 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_unbind()
1737 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_bind()
1747 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_unbind()
Dspectrum_flower.c144 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_flower_parse_meta() local
Dspectrum_nve.c887 int mlxsw_sp_port_nve_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_init()
896 void mlxsw_sp_port_nve_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_fini()
Dspectrum_router.c2555 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_router_netevent_event() local
6623 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init() local
6672 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_router_join() local
6719 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_router_leave() local
6740 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event() local