blob: c95fbbca16352c0d168c91abfa9bc47def3bdad1 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __LINUX_GEN_STATS_H
8#define __LINUX_GEN_STATS_H
9#include <linux/types.h>
10enum {
Tao Baod7db5942015-01-28 10:07:51 -080011 TCA_STATS_UNSPEC,
12 TCA_STATS_BASIC,
13 TCA_STATS_RATE_EST,
14 TCA_STATS_QUEUE,
Tao Baod7db5942015-01-28 10:07:51 -080015 TCA_STATS_APP,
16 TCA_STATS_RATE_EST64,
Christopher Ferris106b3a82016-08-24 12:15:38 -070017 TCA_STATS_PAD,
Christopher Ferris967fb012019-01-10 14:14:59 -080018 TCA_STATS_BASIC_HW,
Christopher Ferrisef80d682020-02-04 16:16:51 -080019 TCA_STATS_PKT64,
Tao Baod7db5942015-01-28 10:07:51 -080020 __TCA_STATS_MAX,
Christopher Ferris106b3a82016-08-24 12:15:38 -070021};
Christopher Ferris38062f92014-07-09 15:33:25 -070022#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct gnet_stats_basic {
Tao Baod7db5942015-01-28 10:07:51 -080024 __u64 bytes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070025 __u32 packets;
Christopher Ferris38062f92014-07-09 15:33:25 -070026};
Ben Cheng655a7c02013-10-16 16:09:24 -070027struct gnet_stats_rate_est {
Tao Baod7db5942015-01-28 10:07:51 -080028 __u32 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070029 __u32 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070030};
31struct gnet_stats_rate_est64 {
Tao Baod7db5942015-01-28 10:07:51 -080032 __u64 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070033 __u64 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070034};
Ben Cheng655a7c02013-10-16 16:09:24 -070035struct gnet_stats_queue {
Tao Baod7db5942015-01-28 10:07:51 -080036 __u32 qlen;
Christopher Ferris106b3a82016-08-24 12:15:38 -070037 __u32 backlog;
Tao Baod7db5942015-01-28 10:07:51 -080038 __u32 drops;
39 __u32 requeues;
40 __u32 overlimits;
Christopher Ferris106b3a82016-08-24 12:15:38 -070041};
Christopher Ferris38062f92014-07-09 15:33:25 -070042struct gnet_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080043 signed char interval;
44 unsigned char ewma_log;
Christopher Ferris106b3a82016-08-24 12:15:38 -070045};
Christopher Ferris38062f92014-07-09 15:33:25 -070046#endif