diff options
author | Eric Dumazet <edumazet@google.com> | 2019-11-05 04:13:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 03:20:55 +0100 |
commit | d0083d98f685b9f4fe810570f93cef0b0bb6b354 (patch) | |
tree | 41cfd67342c054de0ecb8782b21d99151e21a755 /include/net/gen_stats.h | |
parent | net_sched: do not export gnet_stats_basic_packed to uapi (diff) | |
download | linux-d0083d98f685b9f4fe810570f93cef0b0bb6b354.tar.xz linux-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 'include/net/gen_stats.h')
-rw-r--r-- | include/net/gen_stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h index 5f3889e7ec1b..1424e02cef90 100644 --- a/include/net/gen_stats.h +++ b/include/net/gen_stats.h @@ -10,8 +10,8 @@ /* Note: this used to be in include/uapi/linux/gen_stats.h */ struct gnet_stats_basic_packed { __u64 bytes; - __u32 packets; -} __attribute__ ((packed)); + __u64 packets; +}; struct gnet_stats_basic_cpu { struct gnet_stats_basic_packed bstats; |