1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __LINUX_GEN_STATS_H 8 #define __LINUX_GEN_STATS_H 9 #include <linux/types.h> 10 enum { 11 TCA_STATS_UNSPEC, 12 TCA_STATS_BASIC, 13 TCA_STATS_RATE_EST, 14 TCA_STATS_QUEUE, 15 TCA_STATS_APP, 16 TCA_STATS_RATE_EST64, 17 TCA_STATS_PAD, 18 TCA_STATS_BASIC_HW, 19 TCA_STATS_PKT64, 20 __TCA_STATS_MAX, 21 }; 22 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) 23 struct gnet_stats_basic { 24 __u64 bytes; 25 __u32 packets; 26 }; 27 struct gnet_stats_rate_est { 28 __u32 bps; 29 __u32 pps; 30 }; 31 struct gnet_stats_rate_est64 { 32 __u64 bps; 33 __u64 pps; 34 }; 35 struct gnet_stats_queue { 36 __u32 qlen; 37 __u32 backlog; 38 __u32 drops; 39 __u32 requeues; 40 __u32 overlimits; 41 }; 42 struct gnet_estimator { 43 signed char interval; 44 unsigned char ewma_log; 45 }; 46 #endif 47