Home
last modified time | relevance | path

Searched defs:mlxsw_sp (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c85 struct mlxsw_sp *mlxsw_sp; member
214 static int mlxsw_sp_rif_counter_edit(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_counter_edit()
234 int mlxsw_sp_rif_counter_value_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_rif_counter_value_get()
277 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counter_fetch_clear() local
317 static int mlxsw_sp_rif_counter_clear(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_rif_counter_clear()
330 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counter_alloc() local
367 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counter_free() local
385 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counters_alloc() local
532 static struct mlxsw_sp_fib *mlxsw_sp_fib_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fib_create()
564 static void mlxsw_sp_fib_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fib_destroy()
[all …]
H A Dspectrum_acl_tcam.c24 size_t mlxsw_sp_acl_tcam_priv_size(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_acl_tcam_priv_size()
35 int mlxsw_sp_acl_tcam_priority_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_priority_get()
161 struct mlxsw_sp *mlxsw_sp; member
207 static int mlxsw_sp_acl_tcam_group_update(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_update()
257 mlxsw_sp_acl_tcam_vgroup_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_vgroup_add()
307 mlxsw_sp_acl_tcam_group_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_bind()
322 mlxsw_sp_acl_tcam_group_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_unbind()
383 mlxsw_sp_acl_tcam_group_region_attach(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_region_attach()
432 mlxsw_sp_acl_tcam_group_region_detach(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_region_detach()
445 mlxsw_sp_acl_tcam_vgroup_vregion_attach(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_vgroup_vregion_attach()
[all …]
H A Dspectrum.c110 int mlxsw_sp_flow_counter_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_get()
131 static int mlxsw_sp_flow_counter_clear(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_clear()
141 int mlxsw_sp_flow_counter_alloc(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_alloc()
161 void mlxsw_sp_flow_counter_free(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_free()
191 mlxsw_sp_vlan_tag_push(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb) in mlxsw_sp_vlan_tag_push()
208 mlxsw_sp_txhdr_preparations(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb, in mlxsw_sp_txhdr_preparations()
244 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vid_stp_set() local
259 static int mlxsw_sp_base_mac_get(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_base_mac_get()
274 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_admin_status_set() local
286 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_dev_addr_set() local
[all …]
H A Dspectrum_nve.c66 struct mlxsw_sp *mlxsw_sp; member
187 int mlxsw_sp_nve_learned_ip_resolve(struct mlxsw_sp *mlxsw_sp, u32 uip, in mlxsw_sp_nve_learned_ip_resolve()
202 mlxsw_sp_nve_mc_list_find(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_find()
212 mlxsw_sp_nve_mc_list_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_create()
238 static void mlxsw_sp_nve_mc_list_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_destroy()
250 mlxsw_sp_nve_mc_list_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_get()
263 mlxsw_sp_nve_mc_list_put(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_put()
272 mlxsw_sp_nve_mc_record_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_record_create()
306 struct mlxsw_sp *mlxsw_sp = mc_record->mlxsw_sp; in mlxsw_sp_nve_mc_record_destroy() local
316 mlxsw_sp_nve_mc_record_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_record_get()
[all …]
H A Dspectrum_trap.c62 static int mlxsw_sp_rx_listener(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb, in mlxsw_sp_rx_listener()
93 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_rx_drop_listener() local
119 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_rx_acl_drop_listener() local
146 struct mlxsw_sp *mlxsw_sp; in __mlxsw_sp_rx_no_mark_listener() local
197 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_ptp_listener() local
212 mlxsw_sp_sample_tx_port_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_tx_port_get()
238 static void mlxsw_sp_psample_md_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_psample_md_init()
263 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_listener() local
300 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_tx_listener() local
349 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_acl_listener() local
[all …]
H A Dspectrum_mr_tcam.c33 mlxsw_sp_mr_erif_sublist_full(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_sublist_full()
49 mlxsw_sp_mr_erif_sublist_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_sublist_create()
70 mlxsw_sp_mr_erif_sublist_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_sublist_destroy()
80 mlxsw_sp_mr_erif_list_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_list_add()
113 mlxsw_sp_mr_erif_list_flush(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_list_flush()
124 mlxsw_sp_mr_erif_list_commit(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_list_commit()
192 mlxsw_sp_mr_tcam_afa_block_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_tcam_afa_block_create()
260 mlxsw_sp_mr_tcam_erif_populate(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_tcam_erif_populate()
279 mlxsw_sp_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp_mr_tcam_route_create()
343 static void mlxsw_sp_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_tcam_route_destroy()
[all …]
H A Dspectrum_dpipe.c154 static int mlxsw_sp_erif_entry_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_erif_entry_get()
199 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_erif_entries_dump() local
259 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_erif_counters_update() local
281 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_erif_size_get() local
294 static int mlxsw_sp_dpipe_erif_table_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_dpipe_erif_table_init()
304 static void mlxsw_sp_dpipe_erif_table_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_dpipe_erif_table_fini()
510 mlxsw_sp_dpipe_table_host_entry_fill(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_dpipe_table_host_entry_fill()
537 mlxsw_sp_dpipe_table_host_entries_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_dpipe_table_host_entries_get()
616 mlxsw_sp_dpipe_table_host_entries_dump(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_dpipe_table_host_entries_dump()
653 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_host4_entries_dump() local
[all …]
H A Dspectrum_nve_vxlan.c194 mlxsw_sp1_nve_vxlan_config_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_nve_vxlan_config_set()
213 static void mlxsw_sp1_nve_vxlan_config_clear(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp1_nve_vxlan_config_clear()
222 static int mlxsw_sp1_nve_vxlan_rtdp_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_nve_vxlan_rtdp_set()
235 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_init() local
276 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_fini() local
313 static int mlxsw_sp2_nve_vxlan_learning_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_nve_vxlan_learning_set()
324 mlxsw_sp2_nve_decap_ethertype_set(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_nve_decap_ethertype_set()
336 mlxsw_sp2_nve_vxlan_config_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_nve_vxlan_config_set()
387 static void mlxsw_sp2_nve_vxlan_config_clear(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_nve_vxlan_config_clear()
401 static int mlxsw_sp2_nve_vxlan_rtdp_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_nve_vxlan_rtdp_set()
[all …]
H A Dspectrum_acl_flex_actions.c11 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_set_add() local
56 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_set_del() local
73 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp2_act_kvdl_set_activity_get() local
88 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_fwd_entry_add() local
112 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_fwd_entry_del() local
121 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_counter_index_get() local
129 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_counter_index_put() local
141 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_mirror_add() local
165 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_mirror_del() local
177 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_policer_add() local
[all …]
H A Dspectrum.h157 struct mlxsw_sp { struct
158 struct mlxsw_sp_port **ports; argument
163 struct mlxsw_sp_lag *lags; argument
165 struct mlxsw_sp_port_mapping *port_mapping; argument
166 struct mlxsw_sp_port_mapping_events port_mapping_events; argument
168 struct mlxsw_sp_sb *sb; argument
169 struct mlxsw_sp_bridge *bridge; argument
170 struct mlxsw_sp_router *router; argument
171 struct mlxsw_sp_mr *mr; argument
173 struct mlxsw_sp_acl *acl; argument
[all …]
H A Dspectrum_ipip.c170 mlxsw_sp_ipip_nexthop_update_gre4(struct mlxsw_sp *mlxsw_sp, u32 adj_index, in mlxsw_sp_ipip_nexthop_update_gre4()
188 mlxsw_sp_ipip_decap_config_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_decap_config_gre4()
241 static bool mlxsw_sp_ipip_can_offload_gre4(const struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_can_offload_gre4()
259 mlxsw_sp_ipip_ol_loopback_config_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_ol_loopback_config_gre4()
278 mlxsw_sp_ipip_ol_netdev_change_gre(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_ol_netdev_change_gre()
334 mlxsw_sp_ipip_ol_netdev_change_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_ol_netdev_change_gre4()
346 mlxsw_sp_ipip_rem_addr_set_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_rem_addr_set_gre4()
353 mlxsw_sp_ipip_rem_addr_unset_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_rem_addr_unset_gre4()
388 mlxsw_sp_ipip_nexthop_update_gre6(struct mlxsw_sp *mlxsw_sp, u32 adj_index, in mlxsw_sp_ipip_nexthop_update_gre6()
406 mlxsw_sp_ipip_decap_config_gre6(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_decap_config_gre6()
[all …]
H A Dspectrum_acl_ctcam.c14 mlxsw_sp_acl_ctcam_region_resize(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_resize()
27 mlxsw_sp_acl_ctcam_region_move(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_move()
40 mlxsw_sp_acl_ctcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_entry_insert()
87 mlxsw_sp_acl_ctcam_region_entry_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_entry_remove()
101 mlxsw_sp_acl_ctcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_entry_action_replace()
126 struct mlxsw_sp *mlxsw_sp = region->mlxsw_sp; in mlxsw_sp_acl_ctcam_region_parman_resize() local
142 struct mlxsw_sp *mlxsw_sp = region->mlxsw_sp; in mlxsw_sp_acl_ctcam_region_parman_move() local
157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_init()
188 int mlxsw_sp_acl_ctcam_entry_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_entry_add()
214 void mlxsw_sp_acl_ctcam_entry_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_entry_del()
[all …]
H A Dspectrum_buffers.c128 u32 mlxsw_sp_cells_bytes(const struct mlxsw_sp *mlxsw_sp, u32 cells) in mlxsw_sp_cells_bytes()
133 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes) in mlxsw_sp_bytes_cells()
148 static struct mlxsw_sp_sb_pr *mlxsw_sp_sb_pr_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pr_get()
162 static struct mlxsw_sp_sb_cm *mlxsw_sp_sb_cm_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_cm_get()
175 static struct mlxsw_sp_sb_pm *mlxsw_sp_sb_pm_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pm_get()
181 static int mlxsw_sp_sb_pr_write(struct mlxsw_sp *mlxsw_sp, u16 pool_index, in mlxsw_sp_sb_pr_write()
205 static int mlxsw_sp_sb_pr_desc_write(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pr_desc_write()
220 static int mlxsw_sp_sb_cm_write(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_sb_cm_write()
250 static int mlxsw_sp_sb_pm_write(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_sb_pm_write()
271 static int mlxsw_sp_sb_pm_occ_clear(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_sb_pm_occ_clear()
[all …]
H A Dspectrum_acl.c25 struct mlxsw_sp *mlxsw_sp; member
94 struct mlxsw_sp_fid *mlxsw_sp_acl_dummy_fid(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_acl_dummy_fid()
106 int mlxsw_sp_acl_ruleset_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_bind()
117 void mlxsw_sp_acl_ruleset_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_unbind()
129 mlxsw_sp_acl_ruleset_block_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_block_bind()
154 mlxsw_sp_acl_ruleset_block_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_block_unbind()
166 mlxsw_sp_acl_ruleset_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_create()
211 static void mlxsw_sp_acl_ruleset_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_destroy()
229 static void mlxsw_sp_acl_ruleset_ref_dec(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_ref_dec()
253 mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_lookup()
[all …]
H A Dspectrum_span.c23 struct mlxsw_sp *mlxsw_sp; member
75 const struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_span_occ_get() local
80 int mlxsw_sp_span_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_span_init()
121 void mlxsw_sp_span_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_span_fini()
139 static int mlxsw_sp1_span_entry_cpu_parms(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_span_entry_cpu_parms()
168 mlxsw_sp_span_entry_phys_parms(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_span_entry_phys_parms()
181 struct mlxsw_sp *mlxsw_sp = dest_port->mlxsw_sp; in mlxsw_sp_span_entry_phys_configure() local
201 struct mlxsw_sp *mlxsw_sp = dest_port->mlxsw_sp; in mlxsw_sp_span_entry_deconfigure_common() local
449 mlxsw_sp_span_entry_gretap4_parms(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_span_entry_gretap4_parms()
482 struct mlxsw_sp *mlxsw_sp = dest_port->mlxsw_sp; in mlxsw_sp_span_entry_gretap4_configure() local
[all …]
H A Dspectrum_pgt.c28 int mlxsw_sp_pgt_mid_alloc(struct mlxsw_sp *mlxsw_sp, u16 *p_mid) in mlxsw_sp_pgt_mid_alloc()
50 void mlxsw_sp_pgt_mid_free(struct mlxsw_sp *mlxsw_sp, u16 mid_base) in mlxsw_sp_pgt_mid_free()
57 int mlxsw_sp_pgt_mid_alloc_range(struct mlxsw_sp *mlxsw_sp, u16 *p_mid_base, in mlxsw_sp_pgt_mid_alloc_range()
85 mlxsw_sp_pgt_mid_free_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base, u16 count) in mlxsw_sp_pgt_mid_free_range()
183 mlxsw_sp_pgt_entry_port_write(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_write()
207 mlxsw_sp_pgt_entry_port_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_create()
234 mlxsw_sp_pgt_entry_port_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_destroy()
245 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_add()
277 static void mlxsw_sp_pgt_entry_port_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_del()
300 int mlxsw_sp_pgt_entry_port_set(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_set()
[all …]
H A Dspectrum1_mr_tcam.c13 struct mlxsw_sp *mlxsw_sp; member
28 static int mlxsw_sp1_mr_tcam_route_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mr_tcam_route_replace()
60 static int mlxsw_sp1_mr_tcam_route_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mr_tcam_route_remove()
122 mlxsw_sp1_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp1_mr_tcam_route_create()
149 mlxsw_sp1_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp1_mr_tcam_route_destroy()
161 mlxsw_sp1_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mr_tcam_route_update()
178 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_alloc() local
190 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_free() local
202 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_parman_resize() local
220 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_parman_move() local
[all …]
H A Dspectrum_switchdev.c29 struct mlxsw_sp *mlxsw_sp; member
166 bool mlxsw_sp_bridge_device_is_offloaded(const struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_bridge_device_is_offloaded()
175 struct mlxsw_sp *mlxsw_sp = priv->data; in mlxsw_sp_bridge_device_upper_rif_destroy() local
181 static void mlxsw_sp_bridge_device_rifs_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_bridge_device_rifs_destroy()
239 static void mlxsw_sp_fdb_notify_work_schedule(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fdb_notify_work_schedule()
946 static int mlxsw_sp_ageing_set(struct mlxsw_sp *mlxsw_sp, u32 ageing_time) in mlxsw_sp_ageing_set()
962 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_ageing_set() local
977 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_vlan_set() local
995 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_vlan_proto_set() local
1049 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mc_disabled_set() local
[all …]
H A Dspectrum_ptp.h81 mlxsw_sp1_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp1_ptp_clock_init()
91 mlxsw_sp1_ptp_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp1_ptp_init()
100 static inline void mlxsw_sp1_ptp_receive(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_receive()
106 static inline void mlxsw_sp1_ptp_transmitted(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_transmitted()
113 mlxsw_sp1_ptp_got_timestamp(struct mlxsw_sp *mlxsw_sp, bool ingress, in mlxsw_sp1_ptp_got_timestamp()
154 mlxsw_sp2_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp2_ptp_clock_init()
164 mlxsw_sp2_ptp_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_ptp_init()
173 static inline void mlxsw_sp2_ptp_receive(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_ptp_receive()
179 static inline void mlxsw_sp2_ptp_transmitted(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_ptp_transmitted()
H A Dspectrum_fid.c139 struct mlxsw_sp *mlxsw_sp; member
189 struct mlxsw_sp_fid *mlxsw_sp_fid_lookup_by_index(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_lookup_by_index()
223 struct mlxsw_sp_fid *mlxsw_sp_fid_lookup_by_vni(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_lookup_by_vni()
291 struct mlxsw_sp *mlxsw_sp = fid_family->mlxsw_sp; in mlxsw_sp_fid_vni_set() local
324 struct mlxsw_sp *mlxsw_sp = fid_family->mlxsw_sp; in mlxsw_sp_fid_vni_clear() local
483 mlxsw_sp_fid_type_rif_type(const struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_type_rif_type()
568 static u16 mlxsw_sp_fid_rfid_fid_offset_cff(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_rfid_fid_offset_cff()
582 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp; in mlxsw_sp_fid_op() local
593 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp; in mlxsw_sp_fid_edit_op() local
616 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp; in mlxsw_sp_fid_vni_to_fid_map() local
[all …]
H A Dspectrum_ptp.c33 struct mlxsw_sp *mlxsw_sp; member
93 mlxsw_sp1_ptp_state(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp1_ptp_state()
100 mlxsw_sp2_ptp_state(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_ptp_state()
274 mlxsw_sp1_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp1_ptp_clock_init()
444 mlxsw_sp2_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp2_ptp_clock_init()
517 mlxsw_sp1_ptp_unmatched_save(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_unmatched_save()
545 mlxsw_sp1_ptp_unmatched_lookup(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_unmatched_lookup()
565 mlxsw_sp1_ptp_unmatched_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_unmatched_remove()
583 static void mlxsw_sp1_ptp_packet_finish(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_packet_finish()
611 static void mlxsw_sp1_packet_timestamp(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_packet_timestamp()
[all …]
H A Dspectrum_matchall.c30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() local
80 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_del() local
95 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_sample_set() local
107 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_sample_add() local
137 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_sample_del() local
200 int mlxsw_sp_mall_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mall_replace()
379 static int mlxsw_sp1_mall_sample_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mall_sample_add()
399 static void mlxsw_sp1_mall_sample_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mall_sample_del()
411 static int mlxsw_sp2_mall_sample_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_mall_sample_add()
459 static void mlxsw_sp2_mall_sample_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_mall_sample_del()
H A Dspectrum_flow.c13 mlxsw_sp_flow_block_create(struct mlxsw_sp *mlxsw_sp, struct net *net) in mlxsw_sp_flow_block_create()
52 static int mlxsw_sp_flow_block_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_block_bind()
107 static int mlxsw_sp_flow_block_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_block_unbind()
138 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_flow_block_mlxsw_sp(flow_block); in mlxsw_sp_flow_block_mall_cb() local
154 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_flow_block_mlxsw_sp(flow_block); in mlxsw_sp_flow_block_flower_cb() local
205 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_setup_tc_block_bind() local
256 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_setup_tc_block_unbind() local
H A Dspectrum_flower.c58 static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_parse_actions()
414 static int mlxsw_sp_flower_parse_ports(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_parse_ports()
442 mlxsw_sp_flower_parse_ports_range(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_parse_ports_range()
503 static int mlxsw_sp_flower_parse_tcp(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_parse_tcp()
534 static int mlxsw_sp_flower_parse_ip(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_parse_ip()
567 static int mlxsw_sp_flower_parse(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_parse()
740 int mlxsw_sp_flower_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_replace()
791 void mlxsw_sp_flower_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_destroy()
813 int mlxsw_sp_flower_stats(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_stats()
852 int mlxsw_sp_flower_tmplt_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flower_tmplt_create()
[all …]
H A Dspectrum2_acl_tcam.c69 static int mlxsw_sp2_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp2_acl_tcam_init()
140 static void mlxsw_sp2_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, void *priv) in mlxsw_sp2_acl_tcam_fini()
150 mlxsw_sp2_acl_tcam_region_init(struct mlxsw_sp *mlxsw_sp, void *region_priv, in mlxsw_sp2_acl_tcam_region_init()
167 mlxsw_sp2_acl_tcam_region_fini(struct mlxsw_sp *mlxsw_sp, void *region_priv) in mlxsw_sp2_acl_tcam_region_fini()
175 mlxsw_sp2_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_acl_tcam_region_associate()
210 static int mlxsw_sp2_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_acl_tcam_entry_add()
225 static void mlxsw_sp2_acl_tcam_entry_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_acl_tcam_entry_del()
238 mlxsw_sp2_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_acl_tcam_entry_action_replace()
252 mlxsw_sp2_acl_tcam_entry_activity_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_acl_tcam_entry_activity_get()

12