Home
last modified time | relevance | path

Searched refs:rate_bytes_ps (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v6.1/net/sched/
Dsch_tbf.c124 u64 len = time_in_ns * r->rate_bytes_ps; in psched_ns_t2l()
265 return q->peak.rate_bytes_ps; in tbf_peak_present()
402 if (peak.rate_bytes_ps <= rate.rate_bytes_ps) { in tbf_change()
404 peak.rate_bytes_ps, rate.rate_bytes_ps); in tbf_change()
527 if (q->rate.rate_bytes_ps >= (1ULL << 32) && in tbf_dump()
528 nla_put_u64_64bit(skb, TCA_TBF_RATE64, q->rate.rate_bytes_ps, in tbf_dump()
532 q->peak.rate_bytes_ps >= (1ULL << 32) && in tbf_dump()
533 nla_put_u64_64bit(skb, TCA_TBF_PRATE64, q->peak.rate_bytes_ps, in tbf_dump()
Dact_police.c358 if ((police->params->rate.rate_bytes_ps >= (1ULL << 32)) && in tcf_police_dump()
360 police->params->rate.rate_bytes_ps, in tcf_police_dump()
366 if ((police->params->peak.rate_bytes_ps >= (1ULL << 32)) && in tcf_police_dump()
368 police->params->peak.rate_bytes_ps, in tcf_police_dump()
450 entry->police.rate_bytes_ps = in tcf_police_offload_act_setup()
Dsch_htb.c1275 if ((cl->rate.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class()
1276 nla_put_u64_64bit(skb, TCA_HTB_RATE64, cl->rate.rate_bytes_ps, in htb_dump_class()
1279 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class()
1280 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, in htb_dump_class()
2032 u64 quantum = cl->rate.rate_bytes_ps; in htb_change_class()
Dsch_generic.c1525 r->rate_bytes_ps = max_t(u64, conf->rate, rate64); in psched_ratecfg_precompute()
1527 psched_ratecfg_precompute__(r->rate_bytes_ps, &r->mult, &r->shift); in psched_ratecfg_precompute()
/Linux-v6.1/include/net/tc_act/
Dtc_police.h63 return params->rate.rate_bytes_ps; in tcf_police_rate_bytes_ps()
98 burst = div_u64(params->tcfp_burst * params->rate.rate_bytes_ps, in tcf_police_burst()
169 return params->peak.rate_bytes_ps; in tcf_police_peakrate_bytes_ps()
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c234 if (action->police.rate_bytes_ps > 0) { in nfp_flower_install_rate_limiter()
258 if (action->police.rate_bytes_ps > 0) { in nfp_flower_install_rate_limiter()
259 rate = action->police.rate_bytes_ps; in nfp_flower_install_rate_limiter()
643 if (action->police.rate_bytes_ps > 0) { in nfp_flower_setup_meter_entry()
645 meter_entry->rate = action->police.rate_bytes_ps; in nfp_flower_setup_meter_entry()
716 if (action->police.rate_bytes_ps > 0) { in nfp_act_install_actions()
717 rate = action->police.rate_bytes_ps; in nfp_act_install_actions()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dpolice.c31 if (act->police.rate_bytes_ps) { in fill_meter_params_from_act()
34 params->rate = act->police.rate_bytes_ps << 3; in fill_meter_params_from_act()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.h29 int (*policer_add)(void *priv, u64 rate_bytes_ps, u32 burst,
101 u32 fa_index, u64 rate_bytes_ps, u32 burst,
Dspectrum_acl_flex_actions.c172 static int mlxsw_sp_act_policer_add(void *priv, u64 rate_bytes_ps, u32 burst, in mlxsw_sp_act_policer_add() argument
179 params.rate = rate_bytes_ps; in mlxsw_sp_act_policer_add()
Dcore_acl_flex_actions.c870 u64 rate_bytes_ps, u32 burst, in mlxsw_afa_policer_create() argument
880 err = mlxsw_afa->ops->policer_add(mlxsw_afa->ops_priv, rate_bytes_ps, in mlxsw_afa_policer_create()
919 u64 rate_bytes_ps, u32 burst, in mlxsw_afa_policer_get() argument
931 return mlxsw_afa_policer_create(mlxsw_afa, fa_index, rate_bytes_ps, in mlxsw_afa_policer_get()
970 u64 rate_bytes_ps, u32 burst, in mlxsw_afa_policer_ref_create() argument
981 policer = mlxsw_afa_policer_get(block->afa, fa_index, rate_bytes_ps, in mlxsw_afa_policer_ref_create()
1810 u32 fa_index, u64 rate_bytes_ps, u32 burst, in mlxsw_afa_block_append_police() argument
1819 rate_bytes_ps, in mlxsw_afa_block_append_police()
Dspectrum_policer.c54 static u64 mlxsw_sp_policer_rate_bytes_ps_kbps(u64 rate_bytes_ps) in mlxsw_sp_policer_rate_bytes_ps_kbps() argument
56 return div_u64(rate_bytes_ps, 1000) * BITS_PER_BYTE; in mlxsw_sp_policer_rate_bytes_ps_kbps()
Dspectrum_acl.c729 u32 index, u64 rate_bytes_ps, in mlxsw_sp_acl_rulei_act_police() argument
735 rate_bytes_ps, burst, in mlxsw_sp_acl_rulei_act_police()
Dspectrum_flower.c246 act->police.rate_bytes_ps, in mlxsw_sp_flower_parse_actions()
Dspectrum.h1042 u32 index, u64 rate_bytes_ps,
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_tbf.c25 cir = div_u64(qopt->replace_params.rate.rate_bytes_ps, 1000) * 8; in lan966x_tbf_add()
Dlan966x_police.c155 pol.rate = div_u64(act->police.rate_bytes_ps, 1000) * 8; in lan966x_police_port_add()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c292 rate = entry->police.rate_bytes_ps * 8; in otx2_tc_egress_matchall_install()
435 if (act->police.rate_bytes_ps > 0) { in otx2_tc_parse_actions()
436 rate = act->police.rate_bytes_ps * 8; in otx2_tc_parse_actions()
972 rate = entry->police.rate_bytes_ps * 8; in otx2_tc_ingress_matchall_install()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_matchall.c96 if (entry->police.rate_bytes_ps * 8 > max_link_rate) { in cxgb4_matchall_egress_validate()
198 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
/Linux-v6.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_qos.c432 .rate = div_u64(params->rate.rate_bytes_ps, 1000) * 8, in sparx5_tc_tbf_add()
/Linux-v6.1/include/net/
Dsch_generic.h1196 u64 rate_bytes_ps; /* bytes per second */ member
1231 res->rate = min_t(u64, r->rate_bytes_ps, ~0U); in psched_ratecfg_getrate()
Dflow_offload.h264 u64 rate_bytes_ps; member
/Linux-v6.1/drivers/net/dsa/sja1105/
Dsja1105_flower.c370 act->police.rate_bytes_ps, in sja1105_cls_flower_add()
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c118 act->police.rate_bytes_ps; in prestera_flower_parse_actions()
/Linux-v6.1/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c670 if (act->police.rate_bytes_ps || act->police.peakrate_bytes_ps || in am65_cpsw_qos_clsflower_policer_validate()
/Linux-v6.1/drivers/net/ethernet/mscc/
Docelot_flower.c353 rate = a->police.rate_bytes_ps; in ocelot_flower_parse_action()

12