1 #ifndef __LINUX_GEN_STATS_H
2 #define __LINUX_GEN_STATS_H
4 #include <linux/types.h>
14 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
17 * struct gnet_stats_basic - byte/packet throughput statistics
18 * @bytes: number of seen bytes
19 * @packets: number of seen packets
21 struct gnet_stats_basic
26 struct gnet_stats_basic_packed
30 } __attribute__ ((packed
));
33 * struct gnet_stats_rate_est - rate estimator
34 * @bps: current byte rate
35 * @pps: current packet rate
37 struct gnet_stats_rate_est
44 * struct gnet_stats_queue - queuing statistics
46 * @backlog: backlog size of queue
47 * @drops: number of dropped packets
48 * @requeues: number of requeues
49 * @overlimits: number of enqueues over the limit
51 struct gnet_stats_queue
61 * struct gnet_estimator - rate estimator configuration
62 * @interval: sampling period
63 * @ewma_log: the log of measurement window weight
68 unsigned char ewma_log
;
72 #endif /* __LINUX_GEN_STATS_H */