1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef __LINUX_GEN_STATS_H 7 #define __LINUX_GEN_STATS_H 8 #include <linux/types.h> 9 enum { 10 TCA_STATS_UNSPEC, 11 TCA_STATS_BASIC, 12 TCA_STATS_RATE_EST, 13 TCA_STATS_QUEUE, 14 TCA_STATS_APP, 15 TCA_STATS_RATE_EST64, 16 TCA_STATS_PAD, 17 __TCA_STATS_MAX, 18 }; 19 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) 20 struct gnet_stats_basic { 21 __u64 bytes; 22 __u32 packets; 23 }; 24 struct gnet_stats_basic_packed { 25 __u64 bytes; 26 __u32 packets; 27 } __attribute__ ((packed)); 28 struct gnet_stats_rate_est { 29 __u32 bps; 30 __u32 pps; 31 }; 32 struct gnet_stats_rate_est64 { 33 __u64 bps; 34 __u64 pps; 35 }; 36 struct gnet_stats_queue { 37 __u32 qlen; 38 __u32 backlog; 39 __u32 drops; 40 __u32 requeues; 41 __u32 overlimits; 42 }; 43 struct gnet_estimator { 44 signed char interval; 45 unsigned char ewma_log; 46 }; 47 #endif 48