summaryrefslogtreecommitdiff
path: root/include/net/gen_stats.h
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 /include/net/gen_stats.h
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 '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;