Searched refs:cpu_stats (Results 1 – 6 of 6) sorted by relevance
/net/netfilter/ |
D | nft_counter.c | 62 struct nft_counter __percpu *cpu_stats; in nft_counter_do_init() local 65 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_KERNEL_ACCOUNT); in nft_counter_do_init() 66 if (cpu_stats == NULL) in nft_counter_do_init() 70 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_do_init() 80 priv->counter = cpu_stats; in nft_counter_do_init() 238 struct nft_counter __percpu *cpu_stats; in nft_counter_clone() local 244 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_ATOMIC); in nft_counter_clone() 245 if (cpu_stats == NULL) in nft_counter_clone() 249 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_clone() 254 priv_clone->counter = cpu_stats; in nft_counter_clone()
|
D | nf_tables_api.c | 1718 struct nft_stats *cpu_stats, total; in nft_dump_stats() local 1729 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats() 1731 seq = u64_stats_fetch_begin(&cpu_stats->syncp); in nft_dump_stats() 1732 pkts = cpu_stats->pkts; in nft_dump_stats() 1733 bytes = cpu_stats->bytes; in nft_dump_stats() 1734 } while (u64_stats_fetch_retry(&cpu_stats->syncp, seq)); in nft_dump_stats()
|
/net/core/ |
D | drop_monitor.c | 1445 struct net_dm_stats *cpu_stats = &data->stats; in net_dm_stats_read() local 1450 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_stats_read() 1451 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_stats_read() 1452 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_stats_read() 1489 struct net_dm_stats *cpu_stats = &hw_data->stats; in net_dm_hw_stats_read() local 1494 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_hw_stats_read() 1495 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_hw_stats_read() 1496 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_hw_stats_read()
|
/net/devlink/ |
D | trap.c | 163 struct devlink_stats *cpu_stats; in devlink_trap_stats_read() local 167 cpu_stats = per_cpu_ptr(trap_stats, i); in devlink_trap_stats_read() 169 start = u64_stats_fetch_begin(&cpu_stats->syncp); in devlink_trap_stats_read() 170 rx_packets = u64_stats_read(&cpu_stats->rx_packets); in devlink_trap_stats_read() 171 rx_bytes = u64_stats_read(&cpu_stats->rx_bytes); in devlink_trap_stats_read() 172 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in devlink_trap_stats_read()
|
/net/bridge/ |
D | br_vlan.c | 1387 struct pcpu_sw_netstats *cpu_stats; in br_vlan_get_stats() local 1390 cpu_stats = per_cpu_ptr(v->stats, i); in br_vlan_get_stats() 1392 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_vlan_get_stats() 1393 rxpackets = u64_stats_read(&cpu_stats->rx_packets); in br_vlan_get_stats() 1394 rxbytes = u64_stats_read(&cpu_stats->rx_bytes); in br_vlan_get_stats() 1395 txbytes = u64_stats_read(&cpu_stats->tx_bytes); in br_vlan_get_stats() 1396 txpackets = u64_stats_read(&cpu_stats->tx_packets); in br_vlan_get_stats() 1397 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_vlan_get_stats()
|
D | br_multicast.c | 5078 struct bridge_mcast_stats *cpu_stats = per_cpu_ptr(stats, i); in br_multicast_get_stats() local 5083 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_multicast_get_stats() 5084 memcpy(&temp, &cpu_stats->mstats, sizeof(temp)); in br_multicast_get_stats() 5085 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_multicast_get_stats()
|