blob: 0b6c2284150dfc3cf09464f598928935d9120386 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_GEN_STATS_H
20#define __LINUX_GEN_STATS_H
21#include <linux/types.h>
22enum {
Tao Baod7db5942015-01-28 10:07:51 -080023 TCA_STATS_UNSPEC,
24 TCA_STATS_BASIC,
25 TCA_STATS_RATE_EST,
26 TCA_STATS_QUEUE,
Tao Baod7db5942015-01-28 10:07:51 -080027 TCA_STATS_APP,
28 TCA_STATS_RATE_EST64,
Christopher Ferris106b3a82016-08-24 12:15:38 -070029 TCA_STATS_PAD,
Christopher Ferris86a48372019-01-10 14:14:59 -080030 TCA_STATS_BASIC_HW,
Tao Baod7db5942015-01-28 10:07:51 -080031 __TCA_STATS_MAX,
Christopher Ferris106b3a82016-08-24 12:15:38 -070032};
Christopher Ferris38062f92014-07-09 15:33:25 -070033#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070034struct gnet_stats_basic {
Tao Baod7db5942015-01-28 10:07:51 -080035 __u64 bytes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070036 __u32 packets;
Christopher Ferris38062f92014-07-09 15:33:25 -070037};
Ben Cheng655a7c02013-10-16 16:09:24 -070038struct gnet_stats_basic_packed {
Tao Baod7db5942015-01-28 10:07:51 -080039 __u64 bytes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070040 __u32 packets;
Tao Baod7db5942015-01-28 10:07:51 -080041} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070042struct gnet_stats_rate_est {
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070044 __u32 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070045};
46struct gnet_stats_rate_est64 {
Tao Baod7db5942015-01-28 10:07:51 -080047 __u64 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070048 __u64 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070049};
Ben Cheng655a7c02013-10-16 16:09:24 -070050struct gnet_stats_queue {
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 qlen;
Christopher Ferris106b3a82016-08-24 12:15:38 -070052 __u32 backlog;
Tao Baod7db5942015-01-28 10:07:51 -080053 __u32 drops;
54 __u32 requeues;
55 __u32 overlimits;
Christopher Ferris106b3a82016-08-24 12:15:38 -070056};
Christopher Ferris38062f92014-07-09 15:33:25 -070057struct gnet_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080058 signed char interval;
59 unsigned char ewma_log;
Christopher Ferris106b3a82016-08-24 12:15:38 -070060};
Christopher Ferris38062f92014-07-09 15:33:25 -070061#endif