Home
last modified time | relevance | path

Searched refs:span_id (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/marvell/prestera/
Dprestera_span.c25 prestera_span_entry_create(struct prestera_port *port, u8 span_id) in prestera_span_entry_create() argument
35 entry->id = span_id; in prestera_span_entry_create()
48 prestera_span_entry_find_by_id(struct prestera_span *span, u8 span_id) in prestera_span_entry_find_by_id() argument
53 if (entry->id == span_id) in prestera_span_entry_find_by_id()
74 static int prestera_span_get(struct prestera_port *port, u8 *span_id) in prestera_span_get() argument
84 *span_id = entry->id; in prestera_span_get()
98 *span_id = new_span_id; in prestera_span_get()
102 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) in prestera_span_put() argument
107 entry = prestera_span_entry_find_by_id(sw->span, span_id); in prestera_span_put()
114 err = prestera_hw_span_release(sw, span_id); in prestera_span_put()
[all …]
Dprestera_hw.h192 int prestera_hw_span_get(const struct prestera_port *port, u8 *span_id);
193 int prestera_hw_span_bind(const struct prestera_port *port, u8 span_id);
195 int prestera_hw_span_release(struct prestera_switch *sw, u8 span_id);
Dprestera_acl.h39 int span_id; member
Dprestera_hw.c1075 int prestera_hw_span_get(const struct prestera_port *port, u8 *span_id) in prestera_hw_span_get() argument
1089 *span_id = resp.id; in prestera_hw_span_get()
1094 int prestera_hw_span_bind(const struct prestera_port *port, u8 span_id) in prestera_hw_span_bind() argument
1099 .id = span_id, in prestera_hw_span_bind()
1117 int prestera_hw_span_release(struct prestera_switch *sw, u8 span_id) in prestera_hw_span_release() argument
1120 .id = span_id in prestera_hw_span_release()
Dprestera_acl.c131 binding->span_id = PRESTERA_SPAN_INVALID_ID; in prestera_acl_block_bind()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_matchall.c42 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->mirror.span_id, in mlxsw_sp_mall_port_mirror_add()
58 parms.span_id = mall_entry->mirror.span_id; in mlxsw_sp_mall_port_mirror_add()
72 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->mirror.span_id); in mlxsw_sp_mall_port_mirror_add()
86 parms.span_id = mall_entry->mirror.span_id; in mlxsw_sp_mall_port_mirror_del()
89 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->mirror.span_id); in mlxsw_sp_mall_port_mirror_del()
425 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->sample.span_id, in mlxsw_sp2_mall_sample_add()
441 trigger_parms.span_id = mall_entry->sample.span_id; in mlxsw_sp2_mall_sample_add()
455 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->sample.span_id); in mlxsw_sp2_mall_sample_add()
468 trigger_parms.span_id = mall_entry->sample.span_id; in mlxsw_sp2_mall_sample_del()
472 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->sample.span_id); in mlxsw_sp2_mall_sample_del()
Dspectrum_acl_flex_actions.c162 mlxsw_sp_act_mirror_del(void *priv, u8 local_in_port, int span_id, bool ingress) in mlxsw_sp_act_mirror_del() argument
169 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp_act_mirror_del()
205 static void mlxsw_sp1_act_sampler_del(void *priv, u8 local_port, int span_id, in mlxsw_sp1_act_sampler_del() argument
275 static void mlxsw_sp2_act_sampler_del(void *priv, u8 local_port, int span_id, in mlxsw_sp2_act_sampler_del() argument
286 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp2_act_sampler_del()
Dspectrum_span.h51 int span_id; member
105 void mlxsw_sp_span_agent_put(struct mlxsw_sp *mlxsw_sp, int span_id);
Dspectrum_qdisc.c1487 int span_id; in mlxsw_sp_qevent_span_configure() local
1490 err = mlxsw_sp_span_agent_get(mlxsw_sp, &span_id, agent_parms); in mlxsw_sp_qevent_span_configure()
1498 trigger_parms.span_id = span_id; in mlxsw_sp_qevent_span_configure()
1510 *p_span_id = span_id; in mlxsw_sp_qevent_span_configure()
1519 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp_qevent_span_configure()
1525 int span_id) in mlxsw_sp_qevent_span_deconfigure() argument
1529 .span_id = span_id, in mlxsw_sp_qevent_span_deconfigure()
1537 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp_qevent_span_deconfigure()
1549 &agent_parms, &mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_configure()
1556 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_deconfigure()
[all …]
Dcore_acl_flex_actions.h27 void (*mirror_del)(void *priv, u8 local_in_port, int span_id,
37 void (*sampler_del)(void *priv, u8 local_port, int span_id,
Dspectrum_span.c918 mlxsw_sp_span_entry_find_by_id(struct mlxsw_sp *mlxsw_sp, int span_id) in mlxsw_sp_span_entry_find_by_id() argument
925 if (refcount_read(&curr->ref_count) && curr->id == span_id) in mlxsw_sp_span_entry_find_by_id()
1101 void mlxsw_sp_span_agent_put(struct mlxsw_sp *mlxsw_sp, int span_id) in mlxsw_sp_span_agent_put() argument
1107 span_entry = mlxsw_sp_span_entry_find_by_id(mlxsw_sp, span_id); in mlxsw_sp_span_agent_put()
1238 trigger_entry->parms.span_id, in __mlxsw_sp_span_trigger_port_bind()
1376 mlxsw_reg_mpagr_pack(mpagr_pl, trigger, trigger_entry->parms.span_id, in mlxsw_sp2_span_trigger_global_bind()
1568 if (!mlxsw_sp_span_entry_find_by_id(mlxsw_sp, parms->span_id)) in mlxsw_sp_span_agent_bind()
1575 if (trigger_entry->parms.span_id != parms->span_id || in mlxsw_sp_span_agent_bind()
1604 parms->span_id))) in mlxsw_sp_span_agent_unbind()
Dcore_acl_flex_actions.c1354 int span_id; member
1366 mirror->span_id, in mlxsw_afa_mirror_destroy()
1394 ingress, &mirror->span_id); in mlxsw_afa_mirror_create()
1439 err = mlxsw_afa_block_append_allocated_mirror(block, mirror->span_id); in mlxsw_afa_block_append_mirror()
2040 int span_id; member
2050 sampler->span_id, sampler->ingress); in mlxsw_afa_sampler_destroy()
2078 truncate, ingress, &sampler->span_id, in mlxsw_afa_sampler_create()
2127 err = mlxsw_afa_block_append_allocated_sampler(block, sampler->span_id, in mlxsw_afa_block_append_sampler()
Dspectrum.h1121 int span_id; member
1125 int span_id; member
1130 int span_id; /* Relevant for Spectrum-2 onwards. */ member
/Linux-v5.15/include/linux/ceph/
Dosd_client.h244 __le64 span_id; member