/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 28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_getets() 33 static int mlxsw_sp_port_ets_validate(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_ets_validate() argument 36 struct net_device *dev = mlxsw_sp_port->dev; 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() argument 70 struct net_device *dev = mlxsw_sp_port->dev; in mlxsw_sp_port_headroom_ets_set() 75 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_headroom_ets_set() 80 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_headroom_ets_set() 82 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); 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() argument [all …]
|
D | spectrum_qdisc.c | 31 int (*check_params)(struct mlxsw_sp_port *mlxsw_sp_port, 33 int (*replace)(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, 35 int (*destroy)(struct mlxsw_sp_port *mlxsw_sp_port, 37 int (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 40 int (*get_xstats)(struct mlxsw_sp_port *mlxsw_sp_port, 43 void (*clean_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 48 void (*unoffload)(struct mlxsw_sp_port *mlxsw_sp_port, 160 mlxsw_sp_qdisc_find(struct mlxsw_sp_port *mlxsw_sp_port, u32 parent) in mlxsw_sp_qdisc_find() argument 162 struct mlxsw_sp_qdisc_state *qdisc_state = mlxsw_sp_port->qdisc; in mlxsw_sp_qdisc_find() 183 mlxsw_sp_qdisc_find_by_handle(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) in mlxsw_sp_qdisc_find_by_handle() argument [all …]
|
D | spectrum.c | 252 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_txhdr_ptp_data_construct() argument 284 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_txhdr_ptp_data_construct() 301 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_txhdr_handle() argument 313 mlxsw_sp_port, skb, in mlxsw_sp_txhdr_handle() 317 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_txhdr_handle() 342 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set() argument 346 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vid_stp_set() 353 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set() 373 int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set() argument 376 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_admin_status_set() [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() argument 30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() 49 err = mlxsw_sp_span_analyzed_port_get(mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 60 err = mlxsw_sp_span_agent_bind(mlxsw_sp, trigger, mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 70 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->ingress); 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() argument 80 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_del() 87 mlxsw_sp_span_agent_unbind(mlxsw_sp, trigger, mlxsw_sp_port, &parms); in mlxsw_sp_mall_port_mirror_del() 88 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->ingress); 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() argument [all …]
|
D | spectrum_ptp.h | 11 struct mlxsw_sp_port; 44 int mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, 47 int mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, 57 void mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, 61 struct mlxsw_sp_port *mlxsw_sp_port, 80 int mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, 83 int mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, 90 struct mlxsw_sp_port *mlxsw_sp_port, 137 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get() argument 144 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_set() argument [all …]
|
D | spectrum.h | 75 struct mlxsw_sp_port; 162 struct mlxsw_sp_port **ports; 237 int (*hwtstamp_get)(struct mlxsw_sp_port *mlxsw_sp_port, 239 int (*hwtstamp_set)(struct mlxsw_sp_port *mlxsw_sp_port, 246 void (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 249 struct mlxsw_sp_port *mlxsw_sp_port, 292 struct mlxsw_sp_port *mlxsw_sp_port; member 320 struct mlxsw_sp_port { struct 381 int (*ptys_max_speed)(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed); argument 474 mlxsw_sp_port_is_pause_en(const struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_is_pause_en() argument [all …]
|
D | spectrum_flow.c | 35 struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) in mlxsw_sp_flow_block_lookup() argument 40 if (binding->mlxsw_sp_port == mlxsw_sp_port && in mlxsw_sp_flow_block_lookup() 54 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_flow_block_bind() argument 61 if (WARN_ON(mlxsw_sp_flow_block_lookup(block, mlxsw_sp_port, ingress))) in mlxsw_sp_flow_block_bind() 74 err = mlxsw_sp_mall_port_bind(block, mlxsw_sp_port, extack); in mlxsw_sp_flow_block_bind() 83 binding->mlxsw_sp_port = mlxsw_sp_port; in mlxsw_sp_flow_block_bind() 102 mlxsw_sp_mall_port_unbind(block, mlxsw_sp_port); in mlxsw_sp_flow_block_bind() 109 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_flow_block_unbind() argument 114 binding = mlxsw_sp_flow_block_lookup(block, mlxsw_sp_port, ingress); in mlxsw_sp_flow_block_unbind() 130 mlxsw_sp_mall_port_unbind(block, mlxsw_sp_port); in mlxsw_sp_flow_block_unbind() [all …]
|
D | spectrum_switchdev.c | 84 struct mlxsw_sp_port *mlxsw_sp_port, 88 struct mlxsw_sp_port *mlxsw_sp_port); 139 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port, 149 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port, 395 struct mlxsw_sp_port *mlxsw_sp_port; member 430 err = mlxsw_sp_port_kill_vid(rso->mlxsw_sp_port->dev, 0, vid); in mlxsw_sp_bridge_port_replay_switchdev_objs() 436 err = mlxsw_sp_port_obj_add(rso->mlxsw_sp_port->dev, NULL, in mlxsw_sp_bridge_port_replay_switchdev_objs() 463 mlxsw_sp_port_obj_del(rso->mlxsw_sp_port->dev, NULL, in mlxsw_sp_bridge_port_unreplay_switchdev_objs() 478 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_create() local 485 mlxsw_sp_port = mlxsw_sp_port_dev_lower_find(brport_dev); in mlxsw_sp_bridge_port_create() [all …]
|
D | spectrum_ethtool.c | 14 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_drvinfo() local 15 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_get_drvinfo() 146 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_link_ext_state() local 154 mlxsw_reg_pddr_pack(pddr_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_get_link_ext_state() 160 err = mlxsw_reg_query(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pddr), in mlxsw_sp_port_get_link_ext_state() 184 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_pauseparam() local 186 pause->rx_pause = mlxsw_sp_port->link.rx_pause; in mlxsw_sp_port_get_pauseparam() 187 pause->tx_pause = mlxsw_sp_port->link.tx_pause; in mlxsw_sp_port_get_pauseparam() 190 static int mlxsw_sp_port_pause_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_pause_set() argument 195 mlxsw_reg_pfcc_pack(pfcc_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_pause_set() [all …]
|
D | spectrum_ptp.c | 587 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_packet_finish() local 593 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_packet_finish() 594 if (!(mlxsw_sp_port && (!skb->dev || skb->dev == mlxsw_sp_port->dev))) { in mlxsw_sp1_ptp_packet_finish() 709 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_packet() local 714 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_packet() 715 if (!mlxsw_sp_port) in mlxsw_sp1_ptp_got_packet() 718 types = ingress ? mlxsw_sp_port->ptp.ing_types : in mlxsw_sp1_ptp_got_packet() 719 mlxsw_sp_port->ptp.egr_types; in mlxsw_sp1_ptp_got_packet() 750 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_timestamp() local 756 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_timestamp() [all …]
|
D | spectrum_span.h | 14 struct mlxsw_sp_port; 30 struct mlxsw_sp_port *dest_port; /* NULL for unoffloaded SPAN. */ 101 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, 103 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, 107 struct mlxsw_sp_port *mlxsw_sp_port, 112 struct mlxsw_sp_port *mlxsw_sp_port, 114 int mlxsw_sp_span_trigger_enable(struct mlxsw_sp_port *mlxsw_sp_port, 116 void mlxsw_sp_span_trigger_disable(struct mlxsw_sp_port *mlxsw_sp_port,
|
D | spectrum_span.c | 64 struct mlxsw_sp_port *mlxsw_sp_port); 66 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc); 68 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc); 180 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_phys_configure() 200 struct mlxsw_sp_port *dest_port = span_entry->parms.dest_port; in mlxsw_sp_span_entry_deconfigure_common() 304 struct mlxsw_sp_port *port; in mlxsw_sp_span_entry_bridge() 481 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap4_configure() 585 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap6_configure() 651 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_vlan_configure() 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() argument [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() argument 145 return mlxsw_sp_port->mapping.width == 8 ? 2 * size_cells : size_cells; in mlxsw_sp_port_headroom_8x_adjust() 398 void mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_bufs_reset_sizes() argument 401 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_hdroom_bufs_reset_sizes() 406 reserve_cells = mlxsw_sp_hdroom_int_buf_size_get(mlxsw_sp, mlxsw_sp_port->max_mtu, in mlxsw_sp_hdroom_bufs_reset_sizes() 407 mlxsw_sp_port->max_speed); in mlxsw_sp_hdroom_bufs_reset_sizes() 408 reserve_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, reserve_cells); in mlxsw_sp_hdroom_bufs_reset_sizes() 433 thres_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, thres_cells); in mlxsw_sp_hdroom_bufs_reset_sizes() 434 delay_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, delay_cells); in mlxsw_sp_hdroom_bufs_reset_sizes() 450 static int mlxsw_sp_hdroom_configure_buffers(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_configure_buffers() argument [all …]
|
D | spectrum_fid.c | 87 struct mlxsw_sp_port *port, u16 vid); 89 struct mlxsw_sp_port *port, u16 vid); 357 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map() argument 361 return fid->fid_family->ops->port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_map() 365 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap() argument 367 fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_unmap() 806 static int mlxsw_sp_port_vp_mode_trans(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_vp_mode_trans() argument 811 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vp_mode_trans() 820 mlxsw_sp_port->local_port, in mlxsw_sp_port_vp_mode_trans() 826 err = mlxsw_sp_port_vp_mode_set(mlxsw_sp_port, true); in mlxsw_sp_port_vp_mode_trans() [all …]
|
D | spectrum_acl_flex_actions.c | 140 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_act_mirror_add() local 149 mlxsw_sp_port = mlxsw_sp->ports[local_in_port]; in mlxsw_sp_act_mirror_add() 150 err = mlxsw_sp_span_analyzed_port_get(mlxsw_sp_port, ingress); in mlxsw_sp_act_mirror_add() 164 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_act_mirror_del() local 167 mlxsw_sp_port = mlxsw_sp->ports[local_in_port]; in mlxsw_sp_act_mirror_del() 168 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, ingress); in mlxsw_sp_act_mirror_del() 240 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp2_act_sampler_add() local 259 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp2_act_sampler_add() 260 err = mlxsw_sp_span_analyzed_port_get(mlxsw_sp_port, ingress); in mlxsw_sp2_act_sampler_add() 281 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp2_act_sampler_del() local [all …]
|
D | spectrum_trap.c | 64 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_rx_listener() argument 68 if (unlikely(!mlxsw_sp_port)) { in mlxsw_sp_rx_listener() 75 skb->dev = mlxsw_sp_port->dev; in mlxsw_sp_rx_listener() 77 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_rx_listener() 92 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_drop_listener() local 98 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_drop_listener() 100 err = mlxsw_sp_rx_listener(mlxsw_sp, skb, local_port, mlxsw_sp_port); in mlxsw_sp_rx_drop_listener() 118 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_rx_acl_drop_listener() local 124 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_acl_drop_listener() 126 err = mlxsw_sp_rx_listener(mlxsw_sp, skb, local_port, mlxsw_sp_port); in mlxsw_sp_rx_acl_drop_listener() [all …]
|
D | spectrum_acl.c | 114 binding->mlxsw_sp_port, binding->ingress); in mlxsw_sp_acl_ruleset_bind() 125 binding->mlxsw_sp_port, binding->ingress); in mlxsw_sp_acl_ruleset_unbind() 421 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_fwd() local 430 mlxsw_sp_port = netdev_priv(out_dev); in mlxsw_sp_acl_rulei_act_fwd() 431 if (mlxsw_sp_port->mlxsw_sp != mlxsw_sp) { in mlxsw_sp_acl_rulei_act_fwd() 435 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_acl_rulei_act_fwd() 455 struct mlxsw_sp_port *in_port; in mlxsw_sp_acl_rulei_act_mirror() 463 in_port = binding->mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_mirror() 796 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_sample() local 804 mlxsw_sp_port = binding->mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_sample() [all …]
|
D | spectrum_router.h | 178 int mlxsw_sp_router_port_join_lag(struct mlxsw_sp_port *mlxsw_sp_port, 181 void mlxsw_sp_router_port_leave_lag(struct mlxsw_sp_port *mlxsw_sp_port,
|
D | spectrum_acl_tcam.h | 45 struct mlxsw_sp_port *mlxsw_sp_port, 48 struct mlxsw_sp_port *mlxsw_sp_port,
|
D | spectrum_acl_tcam.c | 309 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_bind() argument 316 MLXSW_REG_PXBT_OP_BIND, mlxsw_sp_port->local_port, in mlxsw_sp_acl_tcam_group_bind() 324 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_unbind() argument 331 MLXSW_REG_PXBT_OP_UNBIND, mlxsw_sp_port->local_port, in mlxsw_sp_acl_tcam_group_unbind() 1715 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_bind() argument 1721 mlxsw_sp_port, ingress); in mlxsw_sp_acl_tcam_flower_ruleset_bind() 1727 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_unbind() argument 1733 mlxsw_sp_port, ingress); in mlxsw_sp_acl_tcam_flower_ruleset_unbind() 1856 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_bind() argument 1866 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_unbind() argument
|
D | spectrum_nve.c | 1015 int mlxsw_sp_port_nve_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_init() argument 1017 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_nve_init() 1020 mlxsw_reg_tnqdr_pack(tnqdr_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_nve_init() 1024 void mlxsw_sp_port_nve_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_fini() argument
|
D | spectrum_router.c | 2869 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_dev_lower_is_port() local 2872 mlxsw_sp_port = mlxsw_sp_port_dev_lower_find_rcu(dev); in mlxsw_sp_dev_lower_is_port() 2874 return !!mlxsw_sp_port; in mlxsw_sp_dev_lower_is_port() 8648 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_rif_subport_params_init() local 8651 params->lag = mlxsw_sp_port->lagged; in mlxsw_sp_rif_subport_params_init() 8653 params->lag_id = mlxsw_sp_port->lag_id; in mlxsw_sp_rif_subport_params_init() 8655 params->system_port = mlxsw_sp_port->local_port; in mlxsw_sp_rif_subport_params_init() 8896 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in __mlxsw_sp_port_vlan_router_join() local 8897 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in __mlxsw_sp_port_vlan_router_join() 8916 err = mlxsw_sp_fid_port_vid_map(fid, mlxsw_sp_port, vid); in __mlxsw_sp_port_vlan_router_join() [all …]
|
D | spectrum_flower.c | 300 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_flower_parse_meta_iif() local 323 mlxsw_sp_port = netdev_priv(ingress_dev); in mlxsw_sp_flower_parse_meta_iif() 324 if (mlxsw_sp_port->mlxsw_sp != block->mlxsw_sp) { in mlxsw_sp_flower_parse_meta_iif() 331 mlxsw_sp_port->local_port, in mlxsw_sp_flower_parse_meta_iif()
|