Searched refs:burst (Results 1 – 11 of 11) sorted by relevance
/net/netfilter/ |
D | xt_limit.c | 104 if (r->burst == 0 in limit_mt_check() 105 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check() 107 r->avg, r->burst); in limit_mt_check() 120 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check() 140 u_int32_t burst; member 156 .burst = cm->burst, in limit_mt_compat_from_user() 170 .burst = m->burst, in limit_mt_compat_to_user()
|
D | nft_limit.c | 24 u32 burst; member 70 limit->burst = ntohl(nla_get_be32(tb[NFTA_LIMIT_BURST])); in nft_limit_init() 72 if (pkts && limit->burst == 0) in nft_limit_init() 73 limit->burst = NFT_LIMIT_PKT_BURST_DEFAULT; in nft_limit_init() 75 if (limit->rate + limit->burst < limit->rate) in nft_limit_init() 79 tokens = div64_u64(limit->nsecs, limit->rate) * limit->burst; in nft_limit_init() 85 tokens = div64_u64(limit->nsecs * (limit->rate + limit->burst), in nft_limit_init() 114 nla_put_be32(skb, NFTA_LIMIT_BURST, htonl(limit->burst)) || in nft_limit_dump()
|
D | xt_hashlimit.c | 109 int64_t burst; member 146 to->burst = cfg->burst; in cfg_copy() 158 to->burst = cfg->burst; in cfg_copy() 583 if (hinfo->cfg.burst) in rateinfo_init() 584 dh->rateinfo.burst = in rateinfo_init() 585 hinfo->cfg.burst * dh->rateinfo.rate; in rateinfo_init() 587 dh->rateinfo.burst = dh->rateinfo.rate; in rateinfo_init() 590 dh->rateinfo.burst = in rateinfo_init() 591 hinfo->cfg.burst + dh->rateinfo.rate; in rateinfo_init() 597 dh->rateinfo.credit_cap = hinfo->cfg.burst; in rateinfo_init() [all …]
|
/net/bridge/netfilter/ |
D | ebt_limit.c | 74 if (info->burst == 0 || in ebt_limit_mt_check() 75 user2credits(info->avg * info->burst) < user2credits(info->avg)) { in ebt_limit_mt_check() 77 info->avg, info->burst); in ebt_limit_mt_check() 83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 84 info->credit_cap = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 96 compat_uint_t avg, burst; member
|
/net/core/ |
D | pktgen.c | 408 unsigned int burst; /* number of duplicated packets to burst */ member 634 if (pkt_dev->burst > 1) in pktgen_if_show() 635 seq_printf(seq, " burst: %d\n", pkt_dev->burst); in pktgen_if_show() 1148 pkt_dev->burst = value < 1 ? 1 : value; in pktgen_if_write() 1149 sprintf(pg_result, "OK: burst=%u", pkt_dev->burst); in pktgen_if_write() 3301 unsigned int burst = READ_ONCE(pkt_dev->burst); in pktgen_xmit() local 3344 refcount_add(burst, &skb->users); in pktgen_xmit() 3352 if (refcount_read(&skb->users) != burst) { in pktgen_xmit() 3356 WARN_ON(refcount_sub_and_test(burst - 1, &skb->users)); in pktgen_xmit() 3366 } while (--burst > 0); in pktgen_xmit() [all …]
|
D | sysctl_net_core.c | 444 .data = &net_ratelimit_state.burst,
|
D | devlink.c | 6640 u64 burst; member 7379 policer_item->burst, DEVLINK_ATTR_PAD)) in devlink_nl_trap_policer_fill() 7480 u64 rate, burst; in devlink_trap_policer_set() local 7484 burst = policer_item->burst; in devlink_trap_policer_set() 7490 burst = nla_get_u64(attrs[DEVLINK_ATTR_TRAP_POLICER_BURST]); in devlink_trap_policer_set() 7502 if (burst < policer_item->policer->min_burst) { in devlink_trap_policer_set() 7507 if (burst > policer_item->policer->max_burst) { in devlink_trap_policer_set() 7513 rate, burst, info->extack); in devlink_trap_policer_set() 7518 policer_item->burst = burst; in devlink_trap_policer_set() 10089 policer_item->burst = policer->init_burst; in devlink_trap_policer_register()
|
/net/sched/ |
D | act_police.c | 178 new->tcfp_burst = PSCHED_TICKS2NS(parm->burst); in tcf_police_init() 331 opt.burst = PSCHED_NS2TICKS(p->tcfp_burst); in tcf_police_dump()
|
D | cls_api.c | 3680 entry->police.burst = tcf_police_burst(act); in tc_setup_flow_action()
|
/net/dsa/ |
D | slave.c | 1034 policer->burst = act->police.burst; in dsa_slave_add_cls_matchall_police()
|
/net/ipv4/ |
D | Kconfig | 637 - High burst tolerance (incast due to partition/aggregate),
|