blob: 2df661653300b5265a99fc2c07b03a6996b8e729 [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,
Christopher Ferrisd32ca142020-02-04 16:16:51 -080031 TCA_STATS_PKT64,
Tao Baod7db5942015-01-28 10:07:51 -080032 __TCA_STATS_MAX,
Christopher Ferris106b3a82016-08-24 12:15:38 -070033};
Christopher Ferris38062f92014-07-09 15:33:25 -070034#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070035struct gnet_stats_basic {
Tao Baod7db5942015-01-28 10:07:51 -080036 __u64 bytes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070037 __u32 packets;
Christopher Ferris38062f92014-07-09 15:33:25 -070038};
Ben Cheng655a7c02013-10-16 16:09:24 -070039struct gnet_stats_rate_est {
Tao Baod7db5942015-01-28 10:07:51 -080040 __u32 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070041 __u32 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070042};
43struct gnet_stats_rate_est64 {
Tao Baod7db5942015-01-28 10:07:51 -080044 __u64 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070045 __u64 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070046};
Ben Cheng655a7c02013-10-16 16:09:24 -070047struct gnet_stats_queue {
Tao Baod7db5942015-01-28 10:07:51 -080048 __u32 qlen;
Christopher Ferris106b3a82016-08-24 12:15:38 -070049 __u32 backlog;
Tao Baod7db5942015-01-28 10:07:51 -080050 __u32 drops;
51 __u32 requeues;
52 __u32 overlimits;
Christopher Ferris106b3a82016-08-24 12:15:38 -070053};
Christopher Ferris38062f92014-07-09 15:33:25 -070054struct gnet_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080055 signed char interval;
56 unsigned char ewma_log;
Christopher Ferris106b3a82016-08-24 12:15:38 -070057};
Christopher Ferris38062f92014-07-09 15:33:25 -070058#endif