Home
last modified time | relevance | path

Searched refs:cost (Results 1 – 8 of 8) sorted by relevance

/net/netfilter/
A Dxt_limit.c72 if ((READ_ONCE(priv->credit) < r->cost) && (READ_ONCE(priv->prev) == jiffies)) in limit_mt()
83 if (new_credit >= r->cost) { in limit_mt()
85 new_credit -= r->cost; in limit_mt()
128 if (r->cost == 0) { in limit_mt_check()
130 r->cost = user2credits(r->avg); in limit_mt_check()
150 u_int32_t credit_cap, cost; member
166 .cost = cm->cost, in limit_mt_compat_from_user()
180 .cost = m->cost, in limit_mt_compat_to_user()
A Dnft_limit.c44 delta = tokens - cost; in nft_limit_eval()
174 u64 cost; member
183 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_pkts_eval()
206 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init()
232 priv_dst->cost = priv_src->cost; in nft_limit_pkts_clone()
254 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_bytes_eval() local
256 if (nft_limit_eval(priv, cost)) in nft_limit_bytes_eval()
336 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_obj_pkts_eval()
351 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_obj_pkts_init()
387 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_obj_bytes_eval() local
[all …]
A Dxt_hashlimit.c102 u_int64_t cost; member
598 dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg); in rateinfo_init()
714 tmp = tmp * dh->rateinfo.cost; in hashlimit_byte_cost()
735 u64 cost; in hashlimit_mt_common() local
763 dh->rateinfo.current_rate += cost; in hashlimit_mt_common()
776 cost = hashlimit_byte_cost(skb->len, dh); in hashlimit_mt_common()
778 cost = dh->rateinfo.cost; in hashlimit_mt_common()
780 if (dh->rateinfo.credit >= cost) { in hashlimit_mt_common()
782 dh->rateinfo.credit -= cost; in hashlimit_mt_common()
1108 ent->rateinfo.cost); in dl_seq_print()
[all …]
/net/bridge/netfilter/
A Debt_limit.c46 if (info->credit >= info->cost) { in ebt_limit_mt()
48 info->credit -= info->cost; in ebt_limit_mt()
85 info->cost = user2credits(info->avg); in ebt_limit_mt_check()
98 compat_uint_t credit, credit_cap, cost; member
/net/openvswitch/
A Dmeter.c602 u32 cost; in ovs_meter_execute() local
644 cost = (meter->kbps) ? skb->len * 8 : 1000; in ovs_meter_execute()
657 if (band->bucket >= cost) { in ovs_meter_execute()
658 band->bucket -= cost; in ovs_meter_execute()
/net/bluetooth/
A DKconfig20 Bluetooth is low-cost, low-power, short-range wireless technology.
/net/
A DKconfig501 in page pools. This option incurs additional CPU cost in allocation
502 and recycle paths and additional memory cost to store the statistics.
/net/ipv4/
A DKconfig81 bool "IP: equal cost multipath"
89 equal "cost" and chooses one of them in a non-deterministic fashion

Completed in 15 milliseconds