Home
last modified time | relevance | path

Searched refs:user2credits (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/net/bridge/netfilter/
Debt_limit.c59 user2credits(u_int32_t user) in user2credits() function
75 user2credits(info->avg * info->burst) < user2credits(info->avg)) { 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()
85 info->cost = user2credits(info->avg); in ebt_limit_mt_check()
/linux-6.1.9/net/netfilter/
Dxt_limit.c95 static u32 user2credits(u32 user) in user2credits() function
112 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check()
127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check()
130 r->cost = user2credits(r->avg); in limit_mt_check()
Dxt_hashlimit.c489 static u64 user2credits(u64 user, int revision) in user2credits() function
599 dh->rateinfo.credit = user2credits(hinfo->cfg.avg * in rateinfo_init()
601 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); in rateinfo_init()
888 user2credits(cfg->avg * cfg->burst, revision) < in hashlimit_mt_check_common()
889 user2credits(cfg->avg, revision)) { in hashlimit_mt_check_common()