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
{
25 struct gnet_stats_basic_packed
{
28 } __attribute__ ((packed
));
31 * struct gnet_stats_rate_est - rate estimator
32 * @bps: current byte rate
33 * @pps: current packet rate
35 struct gnet_stats_rate_est
{
41 * struct gnet_stats_queue - queuing statistics
43 * @backlog: backlog size of queue
44 * @drops: number of dropped packets
45 * @requeues: number of requeues
46 * @overlimits: number of enqueues over the limit
48 struct gnet_stats_queue
{
57 * struct gnet_estimator - rate estimator configuration
58 * @interval: sampling period
59 * @ewma_log: the log of measurement window weight
61 struct gnet_estimator
{
63 unsigned char ewma_log
;
67 #endif /* __LINUX_GEN_STATS_H */