1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __LINUX_GEN_STATS_H
3 #define __LINUX_GEN_STATS_H
5 #include <linux/types.h>
17 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
20 * struct gnet_stats_basic - byte/packet throughput statistics
21 * @bytes: number of seen bytes
22 * @packets: number of seen packets
24 struct gnet_stats_basic
{
28 struct gnet_stats_basic_packed
{
31 } __attribute__ ((packed
));
34 * struct gnet_stats_rate_est - rate estimator
35 * @bps: current byte rate
36 * @pps: current packet rate
38 struct gnet_stats_rate_est
{
44 * struct gnet_stats_rate_est64 - rate estimator
45 * @bps: current byte rate
46 * @pps: current packet rate
48 struct gnet_stats_rate_est64
{
54 * struct gnet_stats_queue - queuing statistics
56 * @backlog: backlog size of queue
57 * @drops: number of dropped packets
58 * @requeues: number of requeues
59 * @overlimits: number of enqueues over the limit
61 struct gnet_stats_queue
{
70 * struct gnet_estimator - rate estimator configuration
71 * @interval: sampling period
72 * @ewma_log: the log of measurement window weight
74 struct gnet_estimator
{
76 unsigned char ewma_log
;
80 #endif /* __LINUX_GEN_STATS_H */