1 #ifndef __LINUX_GEN_STATS_H
2 #define __LINUX_GEN_STATS_H
4 #include <linux/types.h>
16 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
19 * struct gnet_stats_basic - byte/packet throughput statistics
20 * @bytes: number of seen bytes
21 * @packets: number of seen packets
23 struct gnet_stats_basic
{
27 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
{
43 * struct gnet_stats_rate_est64 - rate estimator
44 * @bps: current byte rate
45 * @pps: current packet rate
47 struct gnet_stats_rate_est64
{
53 * struct gnet_stats_queue - queuing statistics
55 * @backlog: backlog size of queue
56 * @drops: number of dropped packets
57 * @requeues: number of requeues
58 * @overlimits: number of enqueues over the limit
60 struct gnet_stats_queue
{
69 * struct gnet_estimator - rate estimator configuration
70 * @interval: sampling period
71 * @ewma_log: the log of measurement window weight
73 struct gnet_estimator
{
75 unsigned char ewma_log
;
79 #endif /* __LINUX_GEN_STATS_H */