1 #ifndef __LINUX_GEN_STATS_H
2 #define __LINUX_GEN_STATS_H
4 #include <linux/types.h>
15 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
18 * struct gnet_stats_basic - byte/packet throughput statistics
19 * @bytes: number of seen bytes
20 * @packets: number of seen packets
22 struct gnet_stats_basic {
26 struct gnet_stats_basic_packed {
29 } __attribute__ ((packed));
32 * struct gnet_stats_rate_est - rate estimator
33 * @bps: current byte rate
34 * @pps: current packet rate
36 struct gnet_stats_rate_est {
42 * struct gnet_stats_rate_est64 - rate estimator
43 * @bps: current byte rate
44 * @pps: current packet rate
46 struct gnet_stats_rate_est64 {
52 * struct gnet_stats_queue - queuing statistics
54 * @backlog: backlog size of queue
55 * @drops: number of dropped packets
56 * @requeues: number of requeues
57 * @overlimits: number of enqueues over the limit
59 struct gnet_stats_queue {
68 * struct gnet_estimator - rate estimator configuration
69 * @interval: sampling period
70 * @ewma_log: the log of measurement window weight
72 struct gnet_estimator {
74 unsigned char ewma_log;
78 #endif /* __LINUX_GEN_STATS_H */