Home
last modified time | relevance | path

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

/Linux-v5.10/net/sched/
Dact_police.c57 struct tcf_police *police; in tcf_police_init() local
105 police = to_police(*a); in tcf_police_init()
121 err = gen_replace_estimator(&police->tcf_bstats, in tcf_police_init()
122 police->common.cpu_bstats, in tcf_police_init()
123 &police->tcf_rate_est, in tcf_police_init()
124 &police->tcf_lock, in tcf_police_init()
130 !gen_estimator_active(&police->tcf_rate_est))) { in tcf_police_init()
186 spin_lock_bh(&police->tcf_lock); in tcf_police_init()
187 spin_lock_bh(&police->tcfp_lock); in tcf_police_init()
188 police->tcfp_t_c = ktime_get_ns(); in tcf_police_init()
[all …]
Dcls_api.c3057 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
3058 act = tcf_action_init_1(net, tp, tb[exts->police], in tcf_exts_validate()
3082 (exts->police && tb[exts->police])) { in tcf_exts_validate()
3133 } else if (exts->police) { in tcf_exts_dump()
3135 nest = nla_nest_start_noflag(skb, exts->police); in tcf_exts_dump()
3665 entry->police.burst = tcf_police_burst(act); in tc_setup_flow_action()
3666 entry->police.rate_bytes_ps = in tc_setup_flow_action()
3668 entry->police.mtu = tcf_police_tcfp_mtu(act); in tc_setup_flow_action()
3669 entry->police.index = act->tcfa_index; in tc_setup_flow_action()
/Linux-v5.10/include/net/tc_act/
Dtc_police.h54 struct tcf_police *police = to_police(act); in tcf_police_rate_bytes_ps() local
57 params = rcu_dereference_protected(police->params, in tcf_police_rate_bytes_ps()
58 lockdep_is_held(&police->tcf_lock)); in tcf_police_rate_bytes_ps()
64 struct tcf_police *police = to_police(act); in tcf_police_burst() local
68 params = rcu_dereference_protected(police->params, in tcf_police_burst()
69 lockdep_is_held(&police->tcf_lock)); in tcf_police_burst()
102 struct tcf_police *police = to_police(act); in tcf_police_tcfp_mtu() local
105 params = rcu_dereference_protected(police->params, in tcf_police_tcfp_mtu()
106 lockdep_is_held(&police->tcf_lock)); in tcf_police_tcfp_mtu()
/Linux-v5.10/tools/testing/selftests/drivers/net/mlxsw/
Dtc_police_occ.sh72 action police rate 100mbit burst 100k conform-exceed drop/ok
82 action police rate 100mbit burst 100k conform-exceed drop/ok \
85 flower skip_sw action police index 10
Dtc_restrictions.sh300 action police rate 0.5kbit burst 1m conform-exceed drop/ok
305 action police rate 2.5tbit burst 1g conform-exceed drop/ok
310 action police rate 1.5kbit burst 1m conform-exceed drop/ok
317 action police rate 1.9tbit burst 1g conform-exceed drop/ok
324 action police rate 1.5kbit burst 512b conform-exceed drop/ok
329 action police rate 1.5kbit burst 2k conform-exceed drop/ok
350 action police rate 100mbit burst 100k conform-exceed drop/ok
357 action police rate 100mbit burst 100k conform-exceed drop/pipe \
358 action police rate 200mbit burst 200k conform-exceed drop/ok
Dtc_police_scale.sh47 action police rate 10mbit burst 100k \
/Linux-v5.10/tools/testing/selftests/net/forwarding/
Dtc_police.sh156 action police rate 80mbit burst 16k conform-exceed drop/ok
168 action police rate 80mbit burst 16k conform-exceed drop/ok
210 action police rate 80mbit burst 16k conform-exceed drop/ok \
217 action police index 10
249 action police rate 80mbit burst 16k conform-exceed drop/pipe \
/Linux-v5.10/include/net/
Dpkt_cls.h219 int police; member
223 int action, int police) in tcf_exts_init() argument
235 exts->police = police; in tcf_exts_init()
Dflow_offload.h238 } police; member
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c107 rate = action->police.rate_bytes_ps; in nfp_flower_install_rate_limiter()
108 burst = action->police.burst; in nfp_flower_install_rate_limiter()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c198 burst = roundup_pow_of_two(act->police.burst); in mlxsw_sp_flower_parse_actions()
200 act->police.index, in mlxsw_sp_flower_parse_actions()
201 act->police.rate_bytes_ps, in mlxsw_sp_flower_parse_actions()
/Linux-v5.10/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c1230 if (entryp->police.burst) { in enetc_psfp_parse_clsflower()
1237 fmi->cir = entryp->police.rate_bytes_ps; in enetc_psfp_parse_clsflower()
1238 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
1239 fmi->index = entryp->police.index; in enetc_psfp_parse_clsflower()
1245 if (entryp->police.mtu) in enetc_psfp_parse_clsflower()
1246 sfi->maxsdu = entryp->police.mtu; in enetc_psfp_parse_clsflower()
/Linux-v5.10/drivers/net/dsa/sja1105/
Dsja1105_flower.c327 act->police.rate_bytes_ps, in sja1105_cls_flower_add()
328 act->police.burst); in sja1105_cls_flower_add()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_matchall.c52 if (entry->police.rate_bytes_ps * 8 > max_link_rate) { in cxgb4_matchall_egress_validate()
150 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
/Linux-v5.10/tools/testing/selftests/drivers/net/ocelot/
Dtc_flower_chains.sh188 action police rate 50mbit burst 64k \
/Linux-v5.10/drivers/net/ethernet/mscc/
Docelot_flower.c224 rate = a->police.rate_bytes_ps; in ocelot_flower_parse_action()
226 filter->action.pol.burst = a->police.burst; in ocelot_flower_parse_action()
Docelot_net.c76 pol.rate = (u32)div_u64(action->police.rate_bytes_ps, 1000) * 8; in ocelot_setup_tc_cls_matchall()
77 pol.burst = action->police.burst; in ocelot_setup_tc_cls_matchall()
/Linux-v5.10/tools/include/uapi/linux/
Dpkt_sched.h507 unsigned char police; member
/Linux-v5.10/include/uapi/linux/
Dpkt_sched.h527 unsigned char police; member
/Linux-v5.10/Documentation/networking/
Dcdc_mbim.rst77 The cdc_mbim driver does not process or police messages on the control
Dl2tp.rst569 scoped by the tunnel, the kernel does not police this for L2TPv3 UDP
/Linux-v5.10/Documentation/admin-guide/
Ddevices.rst50 Finally, sometimes we have to play "namespace police." Please don't be
/Linux-v5.10/net/dsa/
Dslave.c996 policer->rate_bytes_per_sec = act->police.rate_bytes_ps; in dsa_slave_add_cls_matchall_police()
997 policer->burst = act->police.burst; in dsa_slave_add_cls_matchall_police()
/Linux-v5.10/Documentation/networking/devlink/
Ddevlink-trap.rst592 devices usually include packet trap policers that are able to police the
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c5068 err = apply_police_params(priv, act->police.rate_bytes_ps, extack); in scan_tc_matchall_fdb_actions()