/Linux-v5.15/net/sched/ |
D | act_police.c | 59 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 …]
|
D | cls_api.c | 3038 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 …]
|
D | act_api.c | 944 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/ |
D | tc_police.h | 58 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/ |
D | qos_conf.c | 135 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/ |
D | tc_police_occ.sh | 72 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
|
D | tc_restrictions.sh | 319 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
|
D | tc_police_scale.sh | 47 action police rate 10mbit burst 100k \
|
/Linux-v5.15/tools/testing/selftests/net/forwarding/ |
D | tc_police.sh | 158 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/ |
D | otx2_tc.c | 215 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/ |
D | cxgb4_tc_matchall.c | 51 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/ |
D | pkt_cls.h | 211 int police; member 215 int action, int police) in tcf_exts_init() argument 227 exts->police = police; in tcf_exts_init()
|
D | act_api.h | 193 struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, bool police,
|
D | flow_offload.h | 241 } police; member
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_flower.c | 194 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/ |
D | sja1105_flower.c | 324 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/ |
D | enetc_qos.c | 1229 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/ |
D | ocelot_flower.c | 223 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()
|
D | ocelot_net.c | 260 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/ |
D | tc_flower_chains.sh | 188 action police rate 50mbit burst 64k \
|
/Linux-v5.15/tools/include/uapi/linux/ |
D | pkt_sched.h | 508 unsigned char police; member
|
/Linux-v5.15/include/uapi/linux/ |
D | pkt_sched.h | 528 unsigned char police; member
|
/Linux-v5.15/Documentation/networking/ |
D | cdc_mbim.rst | 77 The cdc_mbim driver does not process or police messages on the control
|
/Linux-v5.15/Documentation/admin-guide/ |
D | devices.rst | 50 Finally, sometimes we have to play "namespace police." Please don't be
|
/Linux-v5.15/net/dsa/ |
D | slave.c | 1076 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()
|