1/****************************************************************************
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 {
23  TCA_STATS_UNSPEC,
24  TCA_STATS_BASIC,
25  TCA_STATS_RATE_EST,
26  TCA_STATS_QUEUE,
27  TCA_STATS_APP,
28  TCA_STATS_RATE_EST64,
29  TCA_STATS_PAD,
30  __TCA_STATS_MAX,
31};
32#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
33struct gnet_stats_basic {
34  __u64 bytes;
35  __u32 packets;
36};
37struct gnet_stats_basic_packed {
38  __u64 bytes;
39  __u32 packets;
40} __attribute__((packed));
41struct gnet_stats_rate_est {
42  __u32 bps;
43  __u32 pps;
44};
45struct gnet_stats_rate_est64 {
46  __u64 bps;
47  __u64 pps;
48};
49struct gnet_stats_queue {
50  __u32 qlen;
51  __u32 backlog;
52  __u32 drops;
53  __u32 requeues;
54  __u32 overlimits;
55};
56struct gnet_estimator {
57  signed char interval;
58  unsigned char ewma_log;
59};
60#endif
61