Lines Matching refs:parms
51 struct mlxsw_sp_span_trigger_parms parms; member
200 struct mlxsw_sp_port *dest_port = span_entry->parms.dest_port; in mlxsw_sp_span_entry_deconfigure_common()
207 mlxsw_reg_mpat_session_id_set(mpat_pl, span_entry->parms.session_id); in mlxsw_sp_span_entry_deconfigure_common()
418 struct ip_tunnel_parm parms; in mlxsw_sp_span_gretap4_route() local
425 parms = mlxsw_sp_ipip_netdev_parms4(to_dev); in mlxsw_sp_span_gretap4_route()
426 ip_tunnel_init_flow(&fl4, parms.iph.protocol, *daddrp, *saddrp, in mlxsw_sp_span_gretap4_route()
427 0, 0, parms.link, tun->fwmark, 0); in mlxsw_sp_span_gretap4_route()
534 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()
799 span_entry->parms = sparms; in mlxsw_sp_span_entry_configure()
805 if (span_entry->parms.dest_port) in mlxsw_sp_span_entry_deconfigure()
891 if (span_entry->parms.policer_enable) in mlxsw_sp_span_entry_destroy()
942 curr->parms.policer_enable == sparms->policer_enable && in mlxsw_sp_span_entry_find_by_parms()
943 curr->parms.policer_id == sparms->policer_id && in mlxsw_sp_span_entry_find_by_parms()
944 curr->parms.session_id == sparms->session_id) in mlxsw_sp_span_entry_find_by_parms()
1052 if (memcmp(&sparms, &curr->parms, sizeof(sparms))) { in mlxsw_sp_span_respin_work()
1068 const struct mlxsw_sp_span_agent_parms *parms) in mlxsw_sp_span_agent_get() argument
1070 const struct net_device *to_dev = parms->to_dev; in mlxsw_sp_span_agent_get()
1089 sparms.policer_id = parms->policer_id; in mlxsw_sp_span_agent_get()
1090 sparms.policer_enable = parms->policer_enable; in mlxsw_sp_span_agent_get()
1091 sparms.session_id = parms->session_id; in mlxsw_sp_span_agent_get()
1234 if (trigger_entry->parms.probability_rate > MLXSW_REG_MPAR_RATE_MAX) in __mlxsw_sp_span_trigger_port_bind()
1238 trigger_entry->parms.span_id, in __mlxsw_sp_span_trigger_port_bind()
1239 trigger_entry->parms.probability_rate); in __mlxsw_sp_span_trigger_port_bind()
1373 if (trigger_entry->parms.probability_rate > MLXSW_REG_MPAGR_RATE_MAX) in mlxsw_sp2_span_trigger_global_bind()
1376 mlxsw_reg_mpagr_pack(mpagr_pl, trigger, trigger_entry->parms.span_id, in mlxsw_sp2_span_trigger_global_bind()
1377 trigger_entry->parms.probability_rate); in mlxsw_sp2_span_trigger_global_bind()
1502 *parms) in mlxsw_sp_span_trigger_entry_create()
1515 memcpy(&trigger_entry->parms, parms, sizeof(trigger_entry->parms)); in mlxsw_sp_span_trigger_entry_create()
1561 const struct mlxsw_sp_span_trigger_parms *parms) in mlxsw_sp_span_agent_bind() argument
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()
1576 trigger_entry->parms.probability_rate != in mlxsw_sp_span_agent_bind()
1577 parms->probability_rate) in mlxsw_sp_span_agent_bind()
1586 parms); in mlxsw_sp_span_agent_bind()
1597 const struct mlxsw_sp_span_trigger_parms *parms) in mlxsw_sp_span_agent_unbind() argument
1604 parms->span_id))) in mlxsw_sp_span_agent_unbind()