Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 25) sorted by relevance

/net/dccp/ccids/lib/
Dloss_interval.c24 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()
30 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval()
31 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval()
39 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next()
40 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next()
42 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next()
50 for (lh->counter = 0; lh->counter < LIH_SIZE; lh->counter++) in tfrc_lh_cleanup()
51 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup()
53 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup()
54 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()
[all …]
Dloss_interval.h43 u8 counter; member
54 return lh->counter > 0; in tfrc_lh_is_initialised()
59 return min(lh->counter, (u8)LIH_SIZE); in tfrc_lh_length()
/net/netfilter/
Dnft_counter.c23 struct nft_counter __percpu *counter; member
36 this_cpu = this_cpu_ptr(priv->counter); in nft_counter_do_eval()
78 priv->counter = cpu_stats; in nft_counter_do_init()
93 free_percpu(priv->counter); in nft_counter_do_destroy()
110 this_cpu = this_cpu_ptr(priv->counter); in nft_counter_reset()
128 this_cpu = per_cpu_ptr(priv->counter, cpu); in nft_counter_fetch()
247 priv_clone->counter = cpu_stats; in nft_counter_clone()
Dnft_numgen.c21 atomic_t counter; member
30 oval = atomic_read(&priv->counter); in nft_ng_inc_gen()
32 } while (atomic_cmpxchg(&priv->counter, oval, nval) != oval); in nft_ng_inc_gen()
69 atomic_set(&priv->counter, priv->modulus - 1); in nft_ng_inc_init()
Dnf_conntrack_standalone.c279 struct nf_conn_counter *counter; in seq_print_acct() local
285 counter = acct->counter; in seq_print_acct()
287 (unsigned long long)atomic64_read(&counter[dir].packets), in seq_print_acct()
288 (unsigned long long)atomic64_read(&counter[dir].bytes)); in seq_print_acct()
Dnf_conntrack_core.c876 struct nf_conn_counter *counter = acct->counter; in nf_ct_acct_update() local
878 atomic64_inc(&counter[CTINFO2DIR(ctinfo)].packets); in nf_ct_acct_update()
879 atomic64_add(len, &counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_update()
890 struct nf_conn_counter *counter = acct->counter; in nf_ct_acct_merge() local
894 bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_merge()
Dxt_connbytes.c40 counters = acct->counter; in connbytes_mt()
Dx_tables.c1830 struct xt_counters *counter) in xt_percpu_counter_alloc() argument
1832 BUILD_BUG_ON(XT_PCPU_BLOCK_SIZE < (sizeof(*counter) * 2)); in xt_percpu_counter_alloc()
1843 counter->pcnt = (__force unsigned long)(state->mem + state->off); in xt_percpu_counter_alloc()
1844 state->off += sizeof(*counter); in xt_percpu_counter_alloc()
1845 if (state->off > (XT_PCPU_BLOCK_SIZE - sizeof(*counter))) { in xt_percpu_counter_alloc()
Dnft_ct.c138 count = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
148 pcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
150 bcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
Dnf_conntrack_netlink.c243 struct nf_conn_counter *counter = acct->counter; in dump_counters() local
248 pkts = atomic64_xchg(&counter[dir].packets, 0); in dump_counters()
249 bytes = atomic64_xchg(&counter[dir].bytes, 0); in dump_counters()
251 pkts = atomic64_read(&counter[dir].packets); in dump_counters()
252 bytes = atomic64_read(&counter[dir].bytes); in dump_counters()
DKconfig500 tristate "Netfilter nf_tables counter module"
502 This option adds the "counter" expression that you can use to
1175 tristate '"connbytes" per-connection counter match support'
1482 byte counter.
1492 byte counter correctly and not per CPU.
/net/netfilter/ipvs/
Dip_vs_lblc.c109 int counter; /* counter for no expire */ member
304 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblc_check_expire()
307 tbl->counter = 1; in ip_vs_lblc_check_expire()
312 tbl->counter++; in ip_vs_lblc_check_expire()
367 tbl->counter = 1; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c279 int counter; /* counter for no expire */ member
468 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblcr_check_expire()
471 tbl->counter = 1; in ip_vs_lblcr_check_expire()
476 tbl->counter++; in ip_vs_lblcr_check_expire()
530 tbl->counter = 1; in ip_vs_lblcr_init_svc()
/net/ipv4/netfilter/
Dnf_nat_snmp_basic.asn143 counter-value
52 big-counter-value
Darp_tables.c222 struct xt_counters *counter; in arpt_do_table() local
229 counter = xt_get_this_cpu_counter(&e->counters); in arpt_do_table()
230 ADD_COUNTER(*counter, arp_hdr_len(skb->dev), 1); in arpt_do_table()
Dip_tables.c281 struct xt_counters *counter; in ipt_do_table() local
298 counter = xt_get_this_cpu_counter(&e->counters); in ipt_do_table()
299 ADD_COUNTER(*counter, skb->len, 1); in ipt_do_table()
/net/sctp/
Dobjcnt.c69 atomic_read(sctp_dbg_objcnt[i].counter)); in sctp_objcnt_seq_show()
/net/sched/
Dsch_netem.c91 u32 counter; member
531 q->counter < q->gap - 1 || /* inside last reordering gap */ in netem_enqueue()
580 ++q->counter; in netem_enqueue()
588 q->counter = 0; in netem_enqueue()
1004 q->counter = 0; in netem_change()
/net/smc/
Dsmc_cdc.c185 curs.acurs.counter = atomic64_read(&conn->local_tx_ctrl.prod.acurs); in smcd_cdc_msg_send()
188 curs.acurs.counter = atomic64_read(&conn->local_tx_ctrl.cons.acurs); in smcd_cdc_msg_send()
/net/netfilter/ipset/
Dip_set_core.c487 struct ip_set_counter *counter = ext_counter(data, set); in ip_set_match_extensions() local
489 ip_set_update_counter(counter, ext, flags); in ip_set_match_extensions()
492 !(ip_set_match_counter(ip_set_get_packets(counter), in ip_set_match_extensions()
494 ip_set_match_counter(ip_set_get_bytes(counter), in ip_set_match_extensions()
/net/ipv6/netfilter/
Dip6_tables.c304 struct xt_counters *counter; in ip6t_do_table() local
322 counter = xt_get_this_cpu_counter(&e->counters); in ip6t_do_table()
323 ADD_COUNTER(*counter, skb->len, 1); in ip6t_do_table()
/net/batman-adv/
Dtypes.h2027 atomic_t counter; member
Dtranslation-table.c3718 if (!batadv_atomic_dec_not_zero(&tt_roam_node->counter)) in batadv_tt_check_roam_count()
3732 atomic_set(&tt_roam_node->counter, in batadv_tt_check_roam_count()
/net/mac80211/
Dtx.c4409 void ieee80211_csa_set_counter(struct ieee80211_vif *vif, u8 counter) in ieee80211_csa_set_counter() argument
4426 if (counter < beacon->csa_current_counter) in ieee80211_csa_set_counter()
4427 beacon->csa_current_counter = counter; in ieee80211_csa_set_counter()
/net/core/
Ddevlink.c2044 entry->counter, DEVLINK_ATTR_PAD)) in devlink_dpipe_entry_put()