diff options
author | Eric Dumazet <edumazet@google.com> | 2019-11-04 19:13:14 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-05 18:20:55 -0800 |
commit | d0083d98f685b9f4fe810570f93cef0b0bb6b354 (patch) | |
tree | 41cfd67342c054de0ecb8782b21d99151e21a755 /net/core/gen_stats.c | |
parent | 4d390c287b2f3fbd0bb64c52c1a9418f790986e1 (diff) | |
download | linux-stable-d0083d98f685b9f4fe810570f93cef0b0bb6b354.tar.gz linux-stable-d0083d98f685b9f4fe810570f93cef0b0bb6b354.tar.bz2 linux-stable-d0083d98f685b9f4fe810570f93cef0b0bb6b354.zip |
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.c | 3 |
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); |