Home
last modified time | relevance | path

Searched refs:burst (Results 1 – 11 of 11) sorted by relevance

/net/netfilter/
Dxt_limit.c111 if (r->burst == 0 in limit_mt_check()
112 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check()
114 r->avg, r->burst); in limit_mt_check()
127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check()
146 u_int32_t burst; member
162 .burst = cm->burst, in limit_mt_compat_from_user()
176 .burst = m->burst, in limit_mt_compat_to_user()
Dnft_limit.c28 u32 burst; member
77 priv->burst = ntohl(nla_get_be32(tb[NFTA_LIMIT_BURST])); in nft_limit_init()
79 if (pkts && priv->burst == 0) in nft_limit_init()
80 priv->burst = NFT_LIMIT_PKT_BURST_DEFAULT; in nft_limit_init()
82 if (check_add_overflow(priv->rate, priv->burst, &rate_with_burst)) in nft_limit_init()
88 if (check_mul_overflow(tmp, priv->burst, &tokens)) in nft_limit_init()
136 nla_put_be32(skb, NFTA_LIMIT_BURST, htonl(priv->burst)) || in nft_limit_dump()
158 priv_dst->burst = priv_src->burst; in nft_limit_clone()
Dxt_hashlimit.c109 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/
Debt_limit.c74 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/
Dpktgen.c424 unsigned int burst; /* number of duplicated packets to burst */ member
658 if (pkt_dev->burst > 1) in pktgen_if_show()
659 seq_printf(seq, " burst: %d\n", pkt_dev->burst); in pktgen_if_show()
1260 pkt_dev->burst = value < 1 ? 1 : value; in pktgen_if_write()
1261 sprintf(pg_result, "OK: burst=%u", pkt_dev->burst); in pktgen_if_write()
3445 unsigned int burst = READ_ONCE(pkt_dev->burst); in pktgen_xmit() local
3488 refcount_add(burst, &skb->users); in pktgen_xmit()
3496 if (refcount_read(&skb->users) != burst) { in pktgen_xmit()
3500 WARN_ON(refcount_sub_and_test(burst - 1, &skb->users)); in pktgen_xmit()
3510 } while (--burst > 0); in pktgen_xmit()
[all …]
Dsysctl_net_core.c447 .data = &net_ratelimit_state.burst,
/net/sched/
Dact_police.c185 new->tcfp_burst = PSCHED_TICKS2NS(parm->burst); in tcf_police_init()
355 opt.burst = PSCHED_NS2TICKS(p->tcfp_burst); in tcf_police_dump()
449 entry->police.burst = tcf_police_burst(act); in tcf_police_offload_act_setup()
/net/mptcp/
Dprotocol.c1463 u32 pace, burst, wmem; in mptcp_subflow_get_send() local
1536 burst = min_t(int, MPTCP_SEND_BURST_SIZE, mptcp_wnd_end(msk) - msk->snd_nxt); in mptcp_subflow_get_send()
1538 if (!burst) { in mptcp_subflow_get_send()
1545 READ_ONCE(ssk->sk_pacing_rate) * burst, in mptcp_subflow_get_send()
1546 burst + wmem); in mptcp_subflow_get_send()
1548 msk->snd_burst = burst; in mptcp_subflow_get_send()
/net/devlink/
Dleftover.c8171 u64 burst; member
8950 policer_item->burst, DEVLINK_ATTR_PAD)) in devlink_nl_trap_policer_fill()
9049 u64 rate, burst; in devlink_trap_policer_set() local
9053 burst = policer_item->burst; in devlink_trap_policer_set()
9059 burst = nla_get_u64(attrs[DEVLINK_ATTR_TRAP_POLICER_BURST]); in devlink_trap_policer_set()
9071 if (burst < policer_item->policer->min_burst) { in devlink_trap_policer_set()
9076 if (burst > policer_item->policer->max_burst) { in devlink_trap_policer_set()
9082 rate, burst, info->extack); in devlink_trap_policer_set()
9087 policer_item->burst = burst; in devlink_trap_policer_set()
12298 policer_item->burst = policer->init_burst; in devlink_trap_policer_register()
/net/dsa/
Dslave.c1337 policer->burst = act->police.burst; in dsa_slave_add_cls_matchall_police()
/net/ipv4/
DKconfig636 - High burst tolerance (incast due to partition/aggregate),