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
29 * struct gnet_stats_rate_est - rate estimator
30 * @bps: current byte rate
31 * @pps: current packet rate
33 struct gnet_stats_rate_est
40 * struct gnet_stats_rate_est64 - rate estimator
41 * @bps: current byte rate
42 * @pps: current packet rate
44 struct gnet_stats_rate_est64
51 * struct gnet_stats_queue - queuing statistics
53 * @backlog: backlog size of queue
54 * @drops: number of dropped packets
55 * @requeues: number of requeues
56 * @overlimits: number of enqueues over the limit
58 struct gnet_stats_queue
68 * struct gnet_estimator - rate estimator configuration
69 * @interval: sampling period
70 * @ewma_log: the log of measurement window weight
75 unsigned char ewma_log;
79 #endif /* __LINUX_GEN_STATS_H */