Home
last modified time | relevance | path

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

/linux/net/sched/
H A Dsch_tbf.c123 * len = (time_in_ns * r->rate_bytes_ps) / NSEC_PER_SEC in psched_ns_t2l()
125 u64 len = time_in_ns * r->rate_bytes_ps; in psched_ns_t2l()
273 return q->peak.rate_bytes_ps; in tbf_peak_present()
410 if (peak.rate_bytes_ps <= rate.rate_bytes_ps) { in tbf_change()
412 peak.rate_bytes_ps, rate.rate_bytes_ps); in tbf_change()
535 if (q->rate.rate_bytes_ps >= (1ULL << 32) && in tbf_dump()
536 nla_put_u64_64bit(skb, TCA_TBF_RATE64, q->rate.rate_bytes_ps, in tbf_dump()
540 q->peak.rate_bytes_ps > in tbf_dump()
[all...]
H A Dact_police.c359 if ((p->rate.rate_bytes_ps >= (1ULL << 32)) && in tcf_police_dump()
361 p->rate.rate_bytes_ps, in tcf_police_dump()
367 if ((p->peak.rate_bytes_ps >= (1ULL << 32)) && in tcf_police_dump()
369 p->peak.rate_bytes_ps, in tcf_police_dump()
451 entry->police.rate_bytes_ps = in tcf_police_offload_act_setup()
H A Dsch_htb.c1276 if ((cl->rate.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class()
1277 nla_put_u64_64bit(skb, TCA_HTB_RATE64, cl->rate.rate_bytes_ps, in htb_dump_class()
1280 if ((cl->ceil.rate_bytes_ps >= (1ULL << 32)) && in htb_dump_class()
1281 nla_put_u64_64bit(skb, TCA_HTB_CEIL64, cl->ceil.rate_bytes_ps, in htb_dump_class()
2028 u64 quantum = cl->rate.rate_bytes_ps; in htb_change_class()
H A Dsch_generic.c1548 r->rate_bytes_ps = max_t(u64, conf->rate, rate64); in psched_ratecfg_precompute()
1550 psched_ratecfg_precompute__(r->rate_bytes_ps, &r->mult, &r->shift); in psched_ratecfg_precompute()
/linux/include/net/tc_act/
H A Dtc_police.h55 return params->rate.rate_bytes_ps; in tcf_police_rate_bytes_ps()
90 burst = div_u64(params->tcfp_burst * params->rate.rate_bytes_ps, in tcf_police_burst()
161 return params->peak.rate_bytes_ps; in tcf_police_peakrate_bytes_ps()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A 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()
649 if (action->police.rate_bytes_ps > 0) { in nfp_flower_setup_meter_entry()
651 meter_entry->rate = action->police.rate_bytes_ps; in nfp_flower_setup_meter_entry()
722 if (action->police.rate_bytes_ps > 0) { in nfp_act_install_actions()
723 rate = action->police.rate_bytes_ps; in nfp_act_install_actions()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_actions.h29 int (*policer_add)(void *priv, u64 rate_bytes_ps, u32 burst,
103 u32 fa_index, u64 rate_bytes_ps, u32 burst,
H A 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()
H A 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()
H A 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()
H A Dspectrum_acl.c742 u32 index, u64 rate_bytes_ps, in mlxsw_sp_acl_rulei_act_police() argument
748 rate_bytes_ps, burst, in mlxsw_sp_acl_rulei_act_police()
H A Dspectrum_flower.c261 act->police.rate_bytes_ps, in mlxsw_sp_flower_parse_actions()
H A Dspectrum_qdisc.c986 return div_u64(p->rate.rate_bytes_ps, 1000) * 8; in mlxsw_sp_qdisc_tbf_rate_kbps()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpolice.c60 if (act->police.rate_bytes_ps) { in fill_meter_params_from_act()
63 params->rate = act->police.rate_bytes_ps << 3; in fill_meter_params_from_act()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tbf.c25 cir = div_u64(qopt->replace_params.rate.rate_bytes_ps, 1000) * 8; in lan966x_tbf_add()
H A Dlan966x_police.c152 pol.rate = div_u64(act->police.rate_bytes_ps, 1000) * 8; in lan966x_police_port_add()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c263 otx2_convert_rate(entry->police.rate_bytes_ps)); in otx2_tc_egress_matchall_install()
504 if (act->police.rate_bytes_ps > 0) { in otx2_tc_parse_actions()
505 rate = act->police.rate_bytes_ps * 8; in otx2_tc_parse_actions()
1460 rate = entry->police.rate_bytes_ps * 8; in otx2_tc_ingress_matchall_install()
/linux/include/net/
H A Dsch_generic.h1331 u64 rate_bytes_ps; /* bytes per second */
1366 res->rate = min_t(u64, r->rate_bytes_ps, ~0U);
1285 u64 rate_bytes_ps; /* bytes per second */ global() member
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c373 act->police.rate_bytes_ps, in sja1105_cls_flower_add()
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c118 act->police.rate_bytes_ps; in prestera_flower_parse_actions()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c1108 if (act->police.rate_bytes_ps || act->police.peakrate_bytes_ps || in am65_cpsw_qos_clsflower_policer_validate()
/linux/net/dsa/
H A Duser.c1500 policer->rate_bytes_per_sec = act->police.rate_bytes_ps; in dsa_user_add_cls_matchall_police()
/linux/drivers/net/ethernet/airoha/
H A Dairoha_eth.c2624 rate = div_u64(act->police.rate_bytes_ps, 1000); in airoha_dev_tc_matchall()
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.c3004 tx_cr_shaper.rate_limit = bps_to_mbits(cfg->rate.rate_bytes_ps); in dpaa2_eth_setup_tbf()