Lines Matching refs:cost
103 u_int64_t cost;
443 `credit_cap'. The `peak rate' becomes the cost of passing the
444 test, `cost'.
448 discarded. Every time the match passes, you lose `cost' credits;
596 dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg);
601 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision);
712 tmp = tmp * dh->rateinfo.cost;
733 u64 cost;
760 cost = (cfg->mode & XT_HASHLIMIT_BYTES) ? skb->len : 1;
761 dh->rateinfo.current_rate += cost;
774 cost = hashlimit_byte_cost(skb->len, dh);
776 cost = dh->rateinfo.cost;
778 if (dh->rateinfo.credit >= cost) {
780 dh->rateinfo.credit -= cost;
1106 ent->rateinfo.cost);
1117 ent->rateinfo.cost);