summaryrefslogtreecommitdiffstats
path: root/include/net/gen_stats.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-11-05 04:13:14 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-06 03:20:55 +0100
commitd0083d98f685b9f4fe810570f93cef0b0bb6b354 (patch)
tree41cfd67342c054de0ecb8782b21d99151e21a755 /include/net/gen_stats.h
parentnet_sched: do not export gnet_stats_basic_packed to uapi (diff)
downloadlinux-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.h4
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;