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