Searched refs:counters (Results 1 – 10 of 10) sorted by relevance
/net/netfilter/ |
D | xt_connbytes.c | 30 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 …]
|
D | x_tables.c | 1333 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()
|
D | Kconfig | 503 include packet and byte counters in a rule. 563 stateful objects, such as counters and quotas.
|
/net/ipv4/netfilter/ |
D | arp_tables.c | 229 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 …]
|
D | ip_tables.c | 298 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/ |
D | ip6_tables.c | 322 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/ |
D | ebtables.c | 200 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/ |
D | soft-interface.c | 104 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/ |
D | Kconfig | 290 as well as a few selected dot11 counters. These will be 293 Note that some of the counters are not concurrency safe
|
/net/sched/ |
D | Kconfig | 463 bool "Performance counters support"
|