1
2 #ifndef __LINUX_GEN_STATS_H
3 #define __LINUX_GEN_STATS_H
4
5 #include <linux/types.h>
6
7 enum {
8 TCA_STATS_UNSPEC,
9 TCA_STATS_BASIC,
10 TCA_STATS_RATE_EST,
11 TCA_STATS_QUEUE,
12 TCA_STATS_APP,
13 TCA_STATS_RATE_EST64,
14 TCA_STATS_PAD,
15 TCA_STATS_BASIC_HW,
16 __TCA_STATS_MAX,
17 };
18 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
19
20
21
22
23
24
25 struct gnet_stats_basic {
26 __u64 bytes;
27 __u32 packets;
28 };
29 struct gnet_stats_basic_packed {
30 __u64 bytes;
31 __u32 packets;
32 } __attribute__ ((packed));
33
34
35
36
37
38
39 struct gnet_stats_rate_est {
40 __u32 bps;
41 __u32 pps;
42 };
43
44
45
46
47
48
49 struct gnet_stats_rate_est64 {
50 __u64 bps;
51 __u64 pps;
52 };
53
54
55
56
57
58
59
60
61
62 struct gnet_stats_queue {
63 __u32 qlen;
64 __u32 backlog;
65 __u32 drops;
66 __u32 requeues;
67 __u32 overlimits;
68 };
69
70
71
72
73
74
75 struct gnet_estimator {
76 signed char interval;
77 unsigned char ewma_log;
78 };
79
80
81 #endif