Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 10 of 10) sorted by relevance

/net/netfilter/
Dxt_connbytes.c30 const struct nf_conn_counter *counters; in connbytes_mt() local
40 counters = acct->counter; in connbytes_mt()
45 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
48 what = atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt()
51 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
52 what += atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt()
59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
66 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
[all …]
Dx_tables.c1333 struct xt_counters *xt_counters_alloc(unsigned int counters) in xt_counters_alloc() argument
1337 if (counters == 0 || counters > INT_MAX / sizeof(*mem)) in xt_counters_alloc()
1340 counters *= sizeof(*mem); in xt_counters_alloc()
1341 if (counters > XT_MAX_TABLE_SIZE) in xt_counters_alloc()
1344 return vzalloc(counters); in xt_counters_alloc()
1853 void xt_percpu_counter_free(struct xt_counters *counters) in xt_percpu_counter_free() argument
1855 unsigned long pcnt = counters->pcnt; in xt_percpu_counter_free()
DKconfig503 include packet and byte counters in a rule.
563 stateful objects, such as counters and quotas.
/net/ipv4/netfilter/
Darp_tables.c229 counter = xt_get_this_cpu_counter(&e->counters); in arpt_do_table()
318 e->counters.pcnt = pos; in mark_source_chains()
344 pos = e->counters.pcnt; in mark_source_chains()
345 e->counters.pcnt = 0; in mark_source_chains()
359 e->counters.pcnt = pos; in mark_source_chains()
378 e->counters.pcnt = pos; in mark_source_chains()
412 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry()
431 xt_percpu_counter_free(&e->counters); in find_check_entry()
494 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
512 xt_percpu_counter_free(&e->counters); in cleanup_entry()
[all …]
Dip_tables.c298 counter = xt_get_this_cpu_counter(&e->counters); in ipt_do_table()
384 e->counters.pcnt = pos; in mark_source_chains()
408 pos = e->counters.pcnt; in mark_source_chains()
409 e->counters.pcnt = 0; in mark_source_chains()
423 e->counters.pcnt = pos; in mark_source_chains()
442 e->counters.pcnt = pos; in mark_source_chains()
527 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry()
567 xt_percpu_counter_free(&e->counters); in find_check_entry()
631 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
655 xt_percpu_counter_free(&e->counters); in cleanup_entry()
[all …]
/net/ipv6/netfilter/
Dip6_tables.c322 counter = xt_get_this_cpu_counter(&e->counters); in ip6t_do_table()
403 e->counters.pcnt = pos; in mark_source_chains()
427 pos = e->counters.pcnt; in mark_source_chains()
428 e->counters.pcnt = 0; in mark_source_chains()
442 e->counters.pcnt = pos; in mark_source_chains()
461 e->counters.pcnt = pos; in mark_source_chains()
547 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry()
586 xt_percpu_counter_free(&e->counters); in find_check_entry()
650 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
673 xt_percpu_counter_free(&e->counters); in cleanup_entry()
[all …]
/net/bridge/netfilter/
Debtables.c200 cb_base = COUNTER_BASE(private->counters, private->nentries, in ebt_do_table()
947 struct ebt_counter *counters, unsigned int nentries) in get_counters() argument
953 memcpy(counters, oldcounters, in get_counters()
962 ADD_COUNTER(counters[i], counter_base[i].bcnt, in get_counters()
1023 get_counters(t->private->counters, counterstmp, in do_replace_finish()
1035 copy_to_user(repl->counters, counterstmp, in do_replace_finish()
1105 memset(newinfo->counters, 0, countersize); in do_replace()
1155 repl->counters != NULL || input_table->private != NULL) in ebt_register_table()
1182 memset(newinfo->counters, 0, countersize); in ebt_register_table()
1269 struct ebt_counter __user *counters, in do_update_counters() argument
[all …]
/net/batman-adv/
Dsoft-interface.c104 u64 *counters, sum = 0; in batadv_sum_counter() local
108 counters = per_cpu_ptr(bat_priv->bat_counters, cpu); in batadv_sum_counter()
109 sum += counters[idx]; in batadv_sum_counter()
/net/mac80211/
DKconfig290 as well as a few selected dot11 counters. These will be
293 Note that some of the counters are not concurrency safe
/net/sched/
DKconfig463 bool "Performance counters support"