initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / linux / gen_stats.h
blobab631c3571ce3ddaa69eac073864da30e95c9085
1 #ifndef __LINUX_GEN_STATS_H
2 #define __LINUX_GEN_STATS_H
4 #include <linux/types.h>
6 enum {
7 TCA_STATS_UNSPEC,
8 TCA_STATS_BASIC,
9 TCA_STATS_RATE_EST,
10 TCA_STATS_QUEUE,
11 TCA_STATS_APP,
12 __TCA_STATS_MAX,
14 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
16 /**
17 * @bytes: number of seen bytes
18 * @packets: number of seen packets
20 struct gnet_stats_basic
22 __u64 bytes;
23 __u32 packets;
26 /**
27 * @bps: current byte rate
28 * @pps: current packet rate
30 struct gnet_stats_rate_est
32 __u32 bps;
33 __u32 pps;
36 /**
37 * @qlen: queue length
38 * @backlog: backlog size of queue
39 * @drops: number of dropped packets
40 * @requeues: number of requeues
42 struct gnet_stats_queue
44 __u32 qlen;
45 __u32 backlog;
46 __u32 drops;
47 __u32 requeues;
48 __u32 overlimits;
51 /**
52 * @interval: sampling period
53 * @ewma_log: the log of measurement window weight
55 struct gnet_estimator
57 signed char interval;
58 unsigned char ewma_log;
62 #endif /* __LINUX_GEN_STATS_H */