aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/gen_stats.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-11-04 19:13:13 -0800
committerDavid S. Miller <davem@davemloft.net>2019-11-05 18:20:55 -0800
commit4d390c287b2f3fbd0bb64c52c1a9418f790986e1 (patch)
tree0a556c6190faad6b6f69cc8895da811a5c8175c4 /include/net/gen_stats.h
parentMerge branch 'mv88e6xxx-ATU-occupancy-as-devlink-resource' (diff)
downloadlinux-dev-4d390c287b2f3fbd0bb64c52c1a9418f790986e1.tar.xz
linux-dev-4d390c287b2f3fbd0bb64c52c1a9418f790986e1.zip
net_sched: do not export gnet_stats_basic_packed to uapi
gnet_stats_basic_packed was really meant to be private kernel structure. If this proves to be a problem, we will have to rename the in-kernel version. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h
index ca23860adbb9..5f3889e7ec1b 100644
--- a/include/net/gen_stats.h
+++ b/include/net/gen_stats.h
@@ -7,6 +7,12 @@
#include <linux/rtnetlink.h>
#include <linux/pkt_sched.h>
+/* Note: this used to be in include/uapi/linux/gen_stats.h */
+struct gnet_stats_basic_packed {
+ __u64 bytes;
+ __u32 packets;
+} __attribute__ ((packed));
+
struct gnet_stats_basic_cpu {
struct gnet_stats_basic_packed bstats;
struct u64_stats_sync syncp;