Home
last modified time | relevance | path

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

12

/Linux-v5.15/net/sched/
Dact_police.c59 struct tcf_police *police; in tcf_police_init() local
108 police = to_police(*a); in tcf_police_init()
124 err = gen_replace_estimator(&police->tcf_bstats, in tcf_police_init()
125 police->common.cpu_bstats, in tcf_police_init()
126 &police->tcf_rate_est, in tcf_police_init()
127 &police->tcf_lock, in tcf_police_init()
133 !gen_estimator_active(&police->tcf_rate_est))) { in tcf_police_init()
212 spin_lock_bh(&police->tcf_lock); in tcf_police_init()
213 spin_lock_bh(&police->tcfp_lock); in tcf_police_init()
214 police->tcfp_t_c = ktime_get_ns(); in tcf_police_init()
[all …]
Dcls_api.c3038 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
3041 a_o = tc_action_load_ops(tb[exts->police], true, in tcf_exts_validate()
3047 act = tcf_action_init_1(net, tp, tb[exts->police], in tcf_exts_validate()
3072 (exts->police && tb[exts->police])) { in tcf_exts_validate()
3123 } else if (exts->police) { in tcf_exts_dump()
3125 nest = nla_nest_start_noflag(skb, exts->police); in tcf_exts_dump()
3655 entry->police.burst = tcf_police_burst(act); in tc_setup_flow_action()
3656 entry->police.rate_bytes_ps = in tc_setup_flow_action()
3658 entry->police.burst_pkt = tcf_police_burst_pkt(act); in tc_setup_flow_action()
3659 entry->police.rate_pkt_ps = in tc_setup_flow_action()
[all …]
Dact_api.c944 struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, bool police, in tc_action_load_ops() argument
954 if (!police) { in tc_action_load_ops()
1010 bool police = flags & TCA_ACT_FLAGS_POLICE; in tcf_action_init_1() local
1019 if (!police) { in tcf_action_init_1()
1046 if (!police && tb[TCA_ACT_COOKIE]) in tcf_action_init_1()
1049 if (!police) in tcf_action_init_1()
/Linux-v5.15/include/net/tc_act/
Dtc_police.h58 struct tcf_police *police = to_police(act); in tcf_police_rate_bytes_ps() local
61 params = rcu_dereference_protected(police->params, in tcf_police_rate_bytes_ps()
62 lockdep_is_held(&police->tcf_lock)); in tcf_police_rate_bytes_ps()
68 struct tcf_police *police = to_police(act); in tcf_police_burst() local
72 params = rcu_dereference_protected(police->params, in tcf_police_burst()
73 lockdep_is_held(&police->tcf_lock)); in tcf_police_burst()
106 struct tcf_police *police = to_police(act); in tcf_police_rate_pkt_ps() local
109 params = rcu_dereference_protected(police->params, in tcf_police_rate_pkt_ps()
110 lockdep_is_held(&police->tcf_lock)); in tcf_police_rate_pkt_ps()
116 struct tcf_police *police = to_police(act); in tcf_police_burst_pkt() local
[all …]
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c135 if (action->police.rate_bytes_ps > 0) { in nfp_flower_install_rate_limiter()
142 if (action->police.rate_pkt_ps > 0) { in nfp_flower_install_rate_limiter()
159 if (action->police.rate_bytes_ps > 0) { in nfp_flower_install_rate_limiter()
160 rate = action->police.rate_bytes_ps; in nfp_flower_install_rate_limiter()
161 burst = action->police.burst; in nfp_flower_install_rate_limiter()
162 } else if (action->police.rate_pkt_ps > 0) { in nfp_flower_install_rate_limiter()
163 rate = action->police.rate_pkt_ps; in nfp_flower_install_rate_limiter()
164 burst = action->police.burst_pkt; in nfp_flower_install_rate_limiter()
179 if (action->police.rate_pkt_ps > 0) in nfp_flower_install_rate_limiter()
/Linux-v5.15/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.sh319 action police rate 0.5kbit burst 1m conform-exceed drop/ok
324 action police rate 2.5tbit burst 1g conform-exceed drop/ok
329 action police rate 1.5kbit burst 1m conform-exceed drop/ok
336 action police rate 1.9tbit burst 1g conform-exceed drop/ok
343 action police rate 1.5kbit burst 512b conform-exceed drop/ok
348 action police rate 1.5kbit burst 2k conform-exceed drop/ok
369 action police rate 100mbit burst 100k conform-exceed drop/ok
376 action police rate 100mbit burst 100k conform-exceed drop/pipe \
377 action police rate 200mbit burst 200k conform-exceed drop/ok
Dtc_police_scale.sh47 action police rate 10mbit burst 100k \
/Linux-v5.15/tools/testing/selftests/net/forwarding/
Dtc_police.sh158 action police rate 80mbit burst 16k conform-exceed drop/ok
170 action police rate 80mbit burst 16k conform-exceed drop/ok
212 action police rate 80mbit burst 16k conform-exceed drop/ok \
219 action police index 10
251 action police rate 80mbit burst 16k conform-exceed drop/pipe \
330 action police pkts_rate 2000 pkts_burst 400 conform-exceed drop/ok
342 action police pkts_rate 2000 pkts_burst 400 conform-exceed drop/ok
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c215 if (entry->police.rate_pkt_ps) { in otx2_tc_egress_matchall_install()
220 rate = entry->police.rate_bytes_ps * 8; in otx2_tc_egress_matchall_install()
222 err = otx2_set_matchall_egress_rate(nic, entry->police.burst, rate); in otx2_tc_egress_matchall_install()
358 if (act->police.rate_bytes_ps > 0) { in otx2_tc_parse_actions()
359 rate = act->police.rate_bytes_ps * 8; in otx2_tc_parse_actions()
360 burst = act->police.burst; in otx2_tc_parse_actions()
361 } else if (act->police.rate_pkt_ps > 0) { in otx2_tc_parse_actions()
367 rate = act->police.rate_pkt_ps * 8; in otx2_tc_parse_actions()
368 burst = act->police.burst_pkt; in otx2_tc_parse_actions()
889 rate = entry->police.rate_bytes_ps * 8; in otx2_tc_ingress_matchall_install()
[all …]
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_matchall.c51 if (entry->police.rate_pkt_ps) { in cxgb4_matchall_egress_validate()
57 if (entry->police.rate_bytes_ps * 8 > max_link_rate) { in cxgb4_matchall_egress_validate()
153 if (entry->police.rate_pkt_ps) { in cxgb4_matchall_alloc_tc()
159 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
/Linux-v5.15/include/net/
Dpkt_cls.h211 int police; member
215 int action, int police) in tcf_exts_init() argument
227 exts->police = police; in tcf_exts_init()
Dact_api.h193 struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, bool police,
Dflow_offload.h241 } police; member
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c194 if (act->police.rate_pkt_ps) { in mlxsw_sp_flower_parse_actions()
204 burst = roundup_pow_of_two(act->police.burst); in mlxsw_sp_flower_parse_actions()
206 act->police.index, in mlxsw_sp_flower_parse_actions()
207 act->police.rate_bytes_ps, in mlxsw_sp_flower_parse_actions()
/Linux-v5.15/drivers/net/dsa/sja1105/
Dsja1105_flower.c324 if (act->police.rate_pkt_ps) { in sja1105_cls_flower_add()
333 act->police.rate_bytes_ps, in sja1105_cls_flower_add()
334 act->police.burst); in sja1105_cls_flower_add()
/Linux-v5.15/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c1229 if (entryp->police.rate_pkt_ps) { in enetc_psfp_parse_clsflower()
1234 if (entryp->police.burst) { in enetc_psfp_parse_clsflower()
1241 fmi->cir = entryp->police.rate_bytes_ps; in enetc_psfp_parse_clsflower()
1242 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
1243 fmi->index = entryp->police.index; in enetc_psfp_parse_clsflower()
1249 if (entryp->police.mtu) in enetc_psfp_parse_clsflower()
1250 sfi->maxsdu = entryp->police.mtu; in enetc_psfp_parse_clsflower()
/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot_flower.c223 if (a->police.rate_pkt_ps) { in ocelot_flower_parse_action()
229 rate = a->police.rate_bytes_ps; in ocelot_flower_parse_action()
231 filter->action.pol.burst = a->police.burst; in ocelot_flower_parse_action()
Docelot_net.c260 if (action->police.rate_pkt_ps) { in ocelot_setup_tc_cls_matchall()
266 pol.rate = (u32)div_u64(action->police.rate_bytes_ps, 1000) * 8; in ocelot_setup_tc_cls_matchall()
267 pol.burst = action->police.burst; in ocelot_setup_tc_cls_matchall()
/Linux-v5.15/tools/testing/selftests/drivers/net/ocelot/
Dtc_flower_chains.sh188 action police rate 50mbit burst 64k \
/Linux-v5.15/tools/include/uapi/linux/
Dpkt_sched.h508 unsigned char police; member
/Linux-v5.15/include/uapi/linux/
Dpkt_sched.h528 unsigned char police; member
/Linux-v5.15/Documentation/networking/
Dcdc_mbim.rst77 The cdc_mbim driver does not process or police messages on the control
/Linux-v5.15/Documentation/admin-guide/
Ddevices.rst50 Finally, sometimes we have to play "namespace police." Please don't be
/Linux-v5.15/net/dsa/
Dslave.c1076 policer->rate_bytes_per_sec = act->police.rate_bytes_ps; in dsa_slave_add_cls_matchall_police()
1077 policer->burst = act->police.burst; in dsa_slave_add_cls_matchall_police()

12