/linux-6.1.9/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_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_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_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.h | 74 struct mlxsw_sp_port; 161 struct mlxsw_sp_port **ports; 235 int (*hwtstamp_get)(struct mlxsw_sp_port *mlxsw_sp_port, 237 int (*hwtstamp_set)(struct mlxsw_sp_port *mlxsw_sp_port, 244 void (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 247 struct mlxsw_sp_port *mlxsw_sp_port, 290 struct mlxsw_sp_port *mlxsw_sp_port; member 318 struct mlxsw_sp_port { struct 378 int (*ptys_max_speed)(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed); argument 471 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_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, 393 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_create() local 400 mlxsw_sp_port = mlxsw_sp_port_dev_lower_find(brport_dev); in mlxsw_sp_bridge_port_create() 401 bridge_port->lagged = mlxsw_sp_port->lagged; in mlxsw_sp_bridge_port_create() 403 bridge_port->lag_id = mlxsw_sp_port->lag_id; in mlxsw_sp_bridge_port_create() 405 bridge_port->system_port = mlxsw_sp_port->local_port; in mlxsw_sp_bridge_port_create() 415 err = switchdev_bridge_port_offload(brport_dev, mlxsw_sp_port->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_span.h | 14 struct mlxsw_sp_port; 30 struct mlxsw_sp_port *dest_port; /* NULL for unoffloaded SPAN. */ 100 int mlxsw_sp_span_port_mtu_update(struct mlxsw_sp_port *port, u16 mtu); 106 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, 108 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, 112 struct mlxsw_sp_port *mlxsw_sp_port, 117 struct mlxsw_sp_port *mlxsw_sp_port, 119 int mlxsw_sp_span_trigger_enable(struct mlxsw_sp_port *mlxsw_sp_port, 121 void mlxsw_sp_span_trigger_disable(struct mlxsw_sp_port *mlxsw_sp_port,
|
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_ptp.c | 599 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_packet_finish() local 605 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_packet_finish() 606 if (!(mlxsw_sp_port && (!skb->dev || skb->dev == mlxsw_sp_port->dev))) { in mlxsw_sp1_ptp_packet_finish() 721 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_packet() local 726 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_packet() 727 if (!mlxsw_sp_port) in mlxsw_sp1_ptp_got_packet() 730 types = ingress ? mlxsw_sp_port->ptp.ing_types : in mlxsw_sp1_ptp_got_packet() 731 mlxsw_sp_port->ptp.egr_types; in mlxsw_sp1_ptp_got_packet() 762 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_timestamp() local 768 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_timestamp() [all …]
|
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_fid.c | 87 struct mlxsw_sp_port *port, u16 vid); 89 struct mlxsw_sp_port *port, u16 vid); 367 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map() argument 371 return fid->fid_family->ops->port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_map() 375 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap() argument 377 fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_unmap() 816 static int mlxsw_sp_port_vp_mode_trans(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_vp_mode_trans() argument 821 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vp_mode_trans() 830 mlxsw_sp_port->local_port, in mlxsw_sp_port_vp_mode_trans() 836 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 | 108 binding->mlxsw_sp_port, binding->ingress); in mlxsw_sp_acl_ruleset_bind() 119 binding->mlxsw_sp_port, binding->ingress); in mlxsw_sp_acl_ruleset_unbind() 408 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_fwd() local 417 mlxsw_sp_port = netdev_priv(out_dev); in mlxsw_sp_acl_rulei_act_fwd() 418 if (mlxsw_sp_port->mlxsw_sp != mlxsw_sp) { in mlxsw_sp_acl_rulei_act_fwd() 422 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_acl_rulei_act_fwd() 442 struct mlxsw_sp_port *in_port; in mlxsw_sp_acl_rulei_act_mirror() 450 in_port = binding->mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_mirror() 774 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_sample() local 782 mlxsw_sp_port = binding->mlxsw_sp_port; in mlxsw_sp_acl_rulei_act_sample() [all …]
|
D | spectrum_acl_tcam.h | 49 struct mlxsw_sp_port *mlxsw_sp_port, 52 struct mlxsw_sp_port *mlxsw_sp_port,
|
D | spectrum_acl_tcam.c | 365 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_bind() argument 372 MLXSW_REG_PXBT_OP_BIND, mlxsw_sp_port->local_port, in mlxsw_sp_acl_tcam_group_bind() 380 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_group_unbind() argument 387 MLXSW_REG_PXBT_OP_UNBIND, mlxsw_sp_port->local_port, in mlxsw_sp_acl_tcam_group_unbind() 1631 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_bind() argument 1637 mlxsw_sp_port, ingress); in mlxsw_sp_acl_tcam_flower_ruleset_bind() 1643 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_flower_ruleset_unbind() argument 1649 mlxsw_sp_port, ingress); in mlxsw_sp_acl_tcam_flower_ruleset_unbind() 1772 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_bind() argument 1782 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_acl_tcam_mr_ruleset_unbind() argument
|
D | spectrum_flower.c | 289 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_flower_parse_meta() local 314 mlxsw_sp_port = netdev_priv(ingress_dev); in mlxsw_sp_flower_parse_meta() 315 if (mlxsw_sp_port->mlxsw_sp != block->mlxsw_sp) { in mlxsw_sp_flower_parse_meta() 322 mlxsw_sp_port->local_port, in mlxsw_sp_flower_parse_meta()
|
D | spectrum_nve.c | 1014 int mlxsw_sp_port_nve_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_init() argument 1016 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_nve_init() 1019 mlxsw_reg_tnqdr_pack(tnqdr_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_nve_init() 1023 void mlxsw_sp_port_nve_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_nve_fini() argument
|
D | spectrum_router.c | 2768 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_router_netevent_event() local 2786 mlxsw_sp_port = mlxsw_sp_port_lower_dev_hold(p->dev); in mlxsw_sp_router_netevent_event() 2787 if (!mlxsw_sp_port) in mlxsw_sp_router_netevent_event() 2790 mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_router_netevent_event() 2794 mlxsw_sp_port_dev_put(mlxsw_sp_port); in mlxsw_sp_router_netevent_event() 2802 mlxsw_sp_port = mlxsw_sp_port_lower_dev_hold(n->dev); in mlxsw_sp_router_netevent_event() 2803 if (!mlxsw_sp_port) in mlxsw_sp_router_netevent_event() 2808 mlxsw_sp_port_dev_put(mlxsw_sp_port); in mlxsw_sp_router_netevent_event() 2813 net_work->mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_router_netevent_event() 2822 mlxsw_sp_port_dev_put(mlxsw_sp_port); in mlxsw_sp_router_netevent_event() [all …]
|