Home
last modified time | relevance | path

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

12

/linux/net/sched/
A Dact_police.c59 struct tcf_police *police; in tcf_police_init() local
108 police = to_police(*a); in tcf_police_init()
126 &police->tcf_rate_est, in tcf_police_init()
127 &police->tcf_lock, in tcf_police_init()
212 spin_lock_bh(&police->tcf_lock); in tcf_police_init()
281 toks += police->tcfp_toks; in tcf_police_act()
293 police->tcfp_t_c = now; in tcf_police_act()
294 police->tcfp_toks = toks; in tcf_police_act()
295 police->tcfp_ptoks = ptoks; in tcf_police_act()
341 .index = police->tcf_index, in tcf_police_dump()
[all …]
A Dcls_api.c3041 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
3044 a_o = tc_action_load_ops(tb[exts->police], true, in tcf_exts_validate()
3050 act = tcf_action_init_1(net, tp, tb[exts->police], in tcf_exts_validate()
3075 (exts->police && tb[exts->police])) { in tcf_exts_validate()
3126 } else if (exts->police) { in tcf_exts_dump()
3128 nest = nla_nest_start_noflag(skb, exts->police); in tcf_exts_dump()
3658 entry->police.burst = tcf_police_burst(act); in tc_setup_flow_action()
3659 entry->police.rate_bytes_ps = in tc_setup_flow_action()
3662 entry->police.rate_pkt_ps = in tc_setup_flow_action()
3664 entry->police.mtu = tcf_police_tcfp_mtu(act); in tc_setup_flow_action()
[all …]
A Dact_api.c946 struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, bool police, in tc_action_load_ops() argument
956 if (!police) { in tc_action_load_ops()
1012 bool police = flags & TCA_ACT_FLAGS_POLICE; in tcf_action_init_1() local
1021 if (!police) { in tcf_action_init_1()
1048 if (!police && tb[TCA_ACT_COOKIE]) in tcf_action_init_1()
1051 if (!police) in tcf_action_init_1()
/linux/include/net/tc_act/
A 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
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
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
121 lockdep_is_held(&police->tcf_lock)); in tcf_police_burst_pkt()
154 struct tcf_police *police = to_police(act); in tcf_police_tcfp_mtu() local
[all …]
/linux/drivers/net/ethernet/netronome/nfp/flower/
A 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/tools/testing/selftests/drivers/net/mlxsw/
A Dtc_restrictions.sh320 action police rate 0.5kbit burst 1m conform-exceed drop/ok
325 action police rate 2.5tbit burst 1g conform-exceed drop/ok
330 action police rate 1.5kbit burst 1m conform-exceed drop/ok
337 action police rate 1.9tbit burst 1g conform-exceed drop/ok
344 action police rate 1.5kbit burst 512b conform-exceed drop/ok
349 action police rate 1.5kbit burst 2k conform-exceed drop/ok
370 action police rate 100mbit burst 100k conform-exceed drop/ok
377 action police rate 100mbit burst 100k conform-exceed drop/pipe \
378 action police rate 200mbit burst 200k conform-exceed drop/ok
A 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
A Dtc_police_scale.sh47 action police rate 10mbit burst 100k \
/linux/tools/testing/selftests/net/forwarding/
A 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/drivers/net/ethernet/marvell/octeontx2/nic/
A 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/drivers/net/ethernet/chelsio/cxgb4/
A 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/drivers/net/ethernet/mellanox/mlxsw/
A 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/include/net/
A Dpkt_cls.h211 int police; member
215 int action, int police) in tcf_exts_init() argument
227 exts->police = police; in tcf_exts_init()
A Dact_api.h193 struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, bool police,
A Dflow_offload.h241 } police; member
/linux/drivers/net/dsa/sja1105/
A 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/drivers/net/ethernet/freescale/enetc/
A Denetc_qos.c1233 if (entryp->police.rate_pkt_ps) { in enetc_psfp_parse_clsflower()
1238 if (entryp->police.burst) { in enetc_psfp_parse_clsflower()
1245 fmi->cir = entryp->police.rate_bytes_ps; in enetc_psfp_parse_clsflower()
1246 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
1247 fmi->index = entryp->police.index; in enetc_psfp_parse_clsflower()
1253 if (entryp->police.mtu) in enetc_psfp_parse_clsflower()
1254 sfi->maxsdu = entryp->police.mtu; in enetc_psfp_parse_clsflower()
/linux/drivers/net/ethernet/mscc/
A Docelot_flower.c283 if (a->police.rate_pkt_ps) { in ocelot_flower_parse_action()
289 rate = a->police.rate_bytes_ps; in ocelot_flower_parse_action()
291 filter->action.pol.burst = a->police.burst; in ocelot_flower_parse_action()
A 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/tools/testing/selftests/drivers/net/ocelot/
A Dtc_flower_chains.sh193 action police rate 50mbit burst 64k \
/linux/tools/include/uapi/linux/
A Dpkt_sched.h508 unsigned char police; member
/linux/include/uapi/linux/
A Dpkt_sched.h528 unsigned char police; member
/linux/Documentation/networking/
A Dcdc_mbim.rst77 The cdc_mbim driver does not process or police messages on the control
/linux/Documentation/admin-guide/
A Ddevices.rst50 Finally, sometimes we have to play "namespace police." Please don't be
/linux/net/dsa/
A Dslave.c1107 policer->rate_bytes_per_sec = act->police.rate_bytes_ps; in dsa_slave_add_cls_matchall_police()
1108 policer->burst = act->police.burst; in dsa_slave_add_cls_matchall_police()

Completed in 77 milliseconds

12