summaryrefslogtreecommitdiff
path: root/net/core/gen_stats.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-11-05 06:13:14 +0300
committerDavid S. Miller <davem@davemloft.net>2019-11-06 05:20:55 +0300
commitd0083d98f685b9f4fe810570f93cef0b0bb6b354 (patch)
tree41cfd67342c054de0ecb8782b21d99151e21a755 /net/core/gen_stats.c
parent4d390c287b2f3fbd0bb64c52c1a9418f790986e1 (diff)
downloadlinux-d0083d98f685b9f4fe810570f93cef0b0bb6b354.tar.xz
net_sched: extend packet counter to 64bit
After this change, qdisc packet counter is no longer a 32bit quantity. We still export 32bit values to user. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/gen_stats.c')
-rw-r--r--net/core/gen_stats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c
index 36888f5e09eb..fe33e2a9841e 100644
--- a/net/core/gen_stats.c
+++ b/net/core/gen_stats.c
@@ -123,8 +123,7 @@ __gnet_stats_copy_basic_cpu(struct gnet_stats_basic_packed *bstats,
for_each_possible_cpu(i) {
struct gnet_stats_basic_cpu *bcpu = per_cpu_ptr(cpu, i);
unsigned int start;
- u64 bytes;
- u32 packets;
+ u64 bytes, packets;
do {
start = u64_stats_fetch_begin_irq(&bcpu->syncp);