blob: 518f83f3f9c0ff2e248fd62d8f3081c3366e255e [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_PKT_SCHED_H
20#define __LINUX_PKT_SCHED_H
21#include <linux/types.h>
22#define TC_PRIO_BESTEFFORT 0
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define TC_PRIO_FILLER 1
25#define TC_PRIO_BULK 2
26#define TC_PRIO_INTERACTIVE_BULK 4
27#define TC_PRIO_INTERACTIVE 6
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define TC_PRIO_CONTROL 7
30#define TC_PRIO_MAX 15
31struct tc_stats {
Tao Baod7db5942015-01-28 10:07:51 -080032 __u64 bytes;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u32 packets;
35 __u32 drops;
36 __u32 overlimits;
37 __u32 bps;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 pps;
40 __u32 qlen;
41 __u32 backlog;
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct tc_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080045 signed char interval;
46 unsigned char ewma_log;
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define TC_H_MAJ_MASK (0xFFFF0000U)
50#define TC_H_MIN_MASK (0x0000FFFFU)
Tao Baod7db5942015-01-28 10:07:51 -080051#define TC_H_MAJ(h) ((h) & TC_H_MAJ_MASK)
52#define TC_H_MIN(h) ((h) & TC_H_MIN_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054#define TC_H_MAKE(maj,min) (((maj) & TC_H_MAJ_MASK) | ((min) & TC_H_MIN_MASK))
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define TC_H_UNSPEC (0U)
56#define TC_H_ROOT (0xFFFFFFFFU)
57#define TC_H_INGRESS (0xFFFFFFF1U)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059enum tc_link_layer {
Tao Baod7db5942015-01-28 10:07:51 -080060 TC_LINKLAYER_UNAWARE,
61 TC_LINKLAYER_ETHERNET,
62 TC_LINKLAYER_ATM,
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65#define TC_LINKLAYER_MASK 0x0F
Ben Cheng655a7c02013-10-16 16:09:24 -070066struct tc_ratespec {
Tao Baod7db5942015-01-28 10:07:51 -080067 unsigned char cell_log;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u8 linklayer;
70 unsigned short overhead;
71 short cell_align;
72 unsigned short mpu;
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u32 rate;
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76#define TC_RTAB_SIZE 1024
77struct tc_sizespec {
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned char cell_log;
80 unsigned char size_log;
81 short cell_align;
82 int overhead;
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 unsigned int linklayer;
85 unsigned int mpu;
86 unsigned int mtu;
87 unsigned int tsize;
Christopher Ferris38062f92014-07-09 15:33:25 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089};
90enum {
Tao Baod7db5942015-01-28 10:07:51 -080091 TCA_STAB_UNSPEC,
92 TCA_STAB_BASE,
Christopher Ferris38062f92014-07-09 15:33:25 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 TCA_STAB_DATA,
95 __TCA_STAB_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97#define TCA_STAB_MAX (__TCA_STAB_MAX - 1)
Christopher Ferris38062f92014-07-09 15:33:25 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099struct tc_fifo_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800100 __u32 limit;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102#define TCQ_PRIO_BANDS 16
Christopher Ferris38062f92014-07-09 15:33:25 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104#define TCQ_MIN_PRIO_BANDS 2
105struct tc_prio_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800106 int bands;
107 __u8 priomap[TC_PRIO_MAX + 1];
Christopher Ferris38062f92014-07-09 15:33:25 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109};
110struct tc_multiq_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800111 __u16 bands;
112 __u16 max_bands;
Christopher Ferris38062f92014-07-09 15:33:25 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114};
115#define TCQ_PLUG_BUFFER 0
116#define TCQ_PLUG_RELEASE_ONE 1
117#define TCQ_PLUG_RELEASE_INDEFINITE 2
Christopher Ferris38062f92014-07-09 15:33:25 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119#define TCQ_PLUG_LIMIT 3
120struct tc_plug_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800121 int action;
122 __u32 limit;
Christopher Ferris38062f92014-07-09 15:33:25 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124};
125struct tc_tbf_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800126 struct tc_ratespec rate;
127 struct tc_ratespec peakrate;
Christopher Ferris38062f92014-07-09 15:33:25 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u32 limit;
130 __u32 buffer;
131 __u32 mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -0700132};
Christopher Ferris38062f92014-07-09 15:33:25 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134enum {
Tao Baod7db5942015-01-28 10:07:51 -0800135 TCA_TBF_UNSPEC,
136 TCA_TBF_PARMS,
137 TCA_TBF_RTAB,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 TCA_TBF_PTAB,
140 TCA_TBF_RATE64,
141 TCA_TBF_PRATE64,
142 TCA_TBF_BURST,
Christopher Ferris38062f92014-07-09 15:33:25 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 TCA_TBF_PBURST,
145 __TCA_TBF_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700146};
147#define TCA_TBF_MAX (__TCA_TBF_MAX - 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149struct tc_sfq_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800150 unsigned quantum;
151 int perturb_period;
152 __u32 limit;
Christopher Ferris38062f92014-07-09 15:33:25 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 unsigned divisor;
155 unsigned flows;
Ben Cheng655a7c02013-10-16 16:09:24 -0700156};
157struct tc_sfqred_stats {
Christopher Ferris38062f92014-07-09 15:33:25 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u32 prob_drop;
160 __u32 forced_drop;
161 __u32 prob_mark;
162 __u32 forced_mark;
Christopher Ferris38062f92014-07-09 15:33:25 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 prob_mark_head;
165 __u32 forced_mark_head;
Ben Cheng655a7c02013-10-16 16:09:24 -0700166};
167struct tc_sfq_qopt_v1 {
Christopher Ferris38062f92014-07-09 15:33:25 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 struct tc_sfq_qopt v0;
170 unsigned int depth;
171 unsigned int headdrop;
172 __u32 limit;
Christopher Ferris38062f92014-07-09 15:33:25 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 qth_min;
175 __u32 qth_max;
176 unsigned char Wlog;
177 unsigned char Plog;
Christopher Ferris38062f92014-07-09 15:33:25 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 unsigned char Scell_log;
180 unsigned char flags;
181 __u32 max_P;
182 struct tc_sfqred_stats stats;
Christopher Ferris38062f92014-07-09 15:33:25 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184};
185struct tc_sfq_xstats {
Tao Baod7db5942015-01-28 10:07:51 -0800186 __s32 allot;
Ben Cheng655a7c02013-10-16 16:09:24 -0700187};
Christopher Ferris38062f92014-07-09 15:33:25 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189enum {
Tao Baod7db5942015-01-28 10:07:51 -0800190 TCA_RED_UNSPEC,
191 TCA_RED_PARMS,
192 TCA_RED_STAB,
Christopher Ferris38062f92014-07-09 15:33:25 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 TCA_RED_MAX_P,
195 __TCA_RED_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700196};
197#define TCA_RED_MAX (__TCA_RED_MAX - 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199struct tc_red_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800200 __u32 limit;
201 __u32 qth_min;
202 __u32 qth_max;
Christopher Ferris38062f92014-07-09 15:33:25 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 unsigned char Wlog;
205 unsigned char Plog;
206 unsigned char Scell_log;
207 unsigned char flags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700209#define TC_RED_ECN 1
210#define TC_RED_HARDDROP 2
211#define TC_RED_ADAPTATIVE 4
212};
Christopher Ferris38062f92014-07-09 15:33:25 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700214struct tc_red_xstats {
Tao Baod7db5942015-01-28 10:07:51 -0800215 __u32 early;
216 __u32 pdrop;
217 __u32 other;
Christopher Ferris38062f92014-07-09 15:33:25 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 __u32 marked;
Ben Cheng655a7c02013-10-16 16:09:24 -0700220};
221#define MAX_DPs 16
222enum {
Christopher Ferris38062f92014-07-09 15:33:25 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 TCA_GRED_UNSPEC,
225 TCA_GRED_PARMS,
226 TCA_GRED_STAB,
227 TCA_GRED_DPS,
Christopher Ferris38062f92014-07-09 15:33:25 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 TCA_GRED_MAX_P,
230 __TCA_GRED_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700231};
232#define TCA_GRED_MAX (__TCA_GRED_MAX - 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700234struct tc_gred_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800235 __u32 limit;
236 __u32 qth_min;
237 __u32 qth_max;
Christopher Ferris38062f92014-07-09 15:33:25 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 __u32 DP;
240 __u32 backlog;
241 __u32 qave;
242 __u32 forced;
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u32 early;
245 __u32 other;
246 __u32 pdrop;
247 __u8 Wlog;
Christopher Ferris38062f92014-07-09 15:33:25 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 __u8 Plog;
250 __u8 Scell_log;
251 __u8 prio;
252 __u32 packets;
Christopher Ferris38062f92014-07-09 15:33:25 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 __u32 bytesin;
Ben Cheng655a7c02013-10-16 16:09:24 -0700255};
256struct tc_gred_sopt {
Tao Baod7db5942015-01-28 10:07:51 -0800257 __u32 DPs;
Christopher Ferris38062f92014-07-09 15:33:25 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 __u32 def_DP;
260 __u8 grio;
261 __u8 flags;
262 __u16 pad1;
Christopher Ferris38062f92014-07-09 15:33:25 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264};
265enum {
Tao Baod7db5942015-01-28 10:07:51 -0800266 TCA_CHOKE_UNSPEC,
267 TCA_CHOKE_PARMS,
Christopher Ferris38062f92014-07-09 15:33:25 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 TCA_CHOKE_STAB,
270 TCA_CHOKE_MAX_P,
271 __TCA_CHOKE_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700272};
Christopher Ferris38062f92014-07-09 15:33:25 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274#define TCA_CHOKE_MAX (__TCA_CHOKE_MAX - 1)
275struct tc_choke_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800276 __u32 limit;
277 __u32 qth_min;
Christopher Ferris38062f92014-07-09 15:33:25 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 __u32 qth_max;
280 unsigned char Wlog;
281 unsigned char Plog;
282 unsigned char Scell_log;
Christopher Ferris38062f92014-07-09 15:33:25 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 unsigned char flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700285};
286struct tc_choke_xstats {
Tao Baod7db5942015-01-28 10:07:51 -0800287 __u32 early;
Christopher Ferris38062f92014-07-09 15:33:25 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 __u32 pdrop;
290 __u32 other;
291 __u32 marked;
292 __u32 matched;
Christopher Ferris38062f92014-07-09 15:33:25 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700294};
295#define TC_HTB_NUMPRIO 8
296#define TC_HTB_MAXDEPTH 8
297#define TC_HTB_PROTOVER 3
Christopher Ferris38062f92014-07-09 15:33:25 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299struct tc_htb_opt {
Tao Baod7db5942015-01-28 10:07:51 -0800300 struct tc_ratespec rate;
301 struct tc_ratespec ceil;
302 __u32 buffer;
Christopher Ferris38062f92014-07-09 15:33:25 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304 __u32 cbuffer;
305 __u32 quantum;
306 __u32 level;
307 __u32 prio;
Christopher Ferris38062f92014-07-09 15:33:25 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309};
310struct tc_htb_glob {
Tao Baod7db5942015-01-28 10:07:51 -0800311 __u32 version;
312 __u32 rate2quantum;
Christopher Ferris38062f92014-07-09 15:33:25 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 __u32 defcls;
315 __u32 debug;
316 __u32 direct_pkts;
Ben Cheng655a7c02013-10-16 16:09:24 -0700317};
Christopher Ferris38062f92014-07-09 15:33:25 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319enum {
Tao Baod7db5942015-01-28 10:07:51 -0800320 TCA_HTB_UNSPEC,
321 TCA_HTB_PARMS,
322 TCA_HTB_INIT,
Christopher Ferris38062f92014-07-09 15:33:25 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 TCA_HTB_CTAB,
325 TCA_HTB_RTAB,
326 TCA_HTB_DIRECT_QLEN,
327 TCA_HTB_RATE64,
Christopher Ferris38062f92014-07-09 15:33:25 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 TCA_HTB_CEIL64,
330 __TCA_HTB_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700331};
332#define TCA_HTB_MAX (__TCA_HTB_MAX - 1)
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700334struct tc_htb_xstats {
Tao Baod7db5942015-01-28 10:07:51 -0800335 __u32 lends;
336 __u32 borrows;
337 __u32 giants;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 __u32 tokens;
340 __u32 ctokens;
Ben Cheng655a7c02013-10-16 16:09:24 -0700341};
342struct tc_hfsc_qopt {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 __u16 defcls;
Ben Cheng655a7c02013-10-16 16:09:24 -0700345};
Ben Cheng655a7c02013-10-16 16:09:24 -0700346struct tc_service_curve {
Tao Baod7db5942015-01-28 10:07:51 -0800347 __u32 m1;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 __u32 d;
350 __u32 m2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700351};
352struct tc_hfsc_stats {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 __u64 work;
355 __u64 rtwork;
356 __u32 period;
357 __u32 level;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700359};
360enum {
Tao Baod7db5942015-01-28 10:07:51 -0800361 TCA_HFSC_UNSPEC,
362 TCA_HFSC_RSC,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 TCA_HFSC_FSC,
365 TCA_HFSC_USC,
366 __TCA_HFSC_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700367};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369#define TCA_HFSC_MAX (__TCA_HFSC_MAX - 1)
370#define TC_CBQ_MAXPRIO 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700371#define TC_CBQ_MAXLEVEL 8
372#define TC_CBQ_DEF_EWMA 5
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374struct tc_cbq_lssopt {
Tao Baod7db5942015-01-28 10:07:51 -0800375 unsigned char change;
376 unsigned char flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700377#define TCF_CBQ_LSS_BOUNDED 1
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379#define TCF_CBQ_LSS_ISOLATED 2
Tao Baod7db5942015-01-28 10:07:51 -0800380 unsigned char ewma_log;
381 unsigned char level;
Ben Cheng655a7c02013-10-16 16:09:24 -0700382#define TCF_CBQ_LSS_FLAGS 1
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384#define TCF_CBQ_LSS_EWMA 2
385#define TCF_CBQ_LSS_MAXIDLE 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700386#define TCF_CBQ_LSS_MINIDLE 8
387#define TCF_CBQ_LSS_OFFTIME 0x10
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389#define TCF_CBQ_LSS_AVPKT 0x20
Tao Baod7db5942015-01-28 10:07:51 -0800390 __u32 maxidle;
391 __u32 minidle;
392 __u32 offtime;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 __u32 avpkt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700395};
Ben Cheng655a7c02013-10-16 16:09:24 -0700396struct tc_cbq_wrropt {
Tao Baod7db5942015-01-28 10:07:51 -0800397 unsigned char flags;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 unsigned char priority;
400 unsigned char cpriority;
401 unsigned char __reserved;
402 __u32 allot;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u32 weight;
Ben Cheng655a7c02013-10-16 16:09:24 -0700405};
Ben Cheng655a7c02013-10-16 16:09:24 -0700406struct tc_cbq_ovl {
Tao Baod7db5942015-01-28 10:07:51 -0800407 unsigned char strategy;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409#define TC_CBQ_OVL_CLASSIC 0
410#define TC_CBQ_OVL_DELAY 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700411#define TC_CBQ_OVL_LOWPRIO 2
412#define TC_CBQ_OVL_DROP 3
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414#define TC_CBQ_OVL_RCLASSIC 4
Tao Baod7db5942015-01-28 10:07:51 -0800415 unsigned char priority2;
416 __u16 pad;
417 __u32 penalty;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419};
420struct tc_cbq_police {
Tao Baod7db5942015-01-28 10:07:51 -0800421 unsigned char police;
422 unsigned char __res1;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 unsigned short __res2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700425};
Ben Cheng655a7c02013-10-16 16:09:24 -0700426struct tc_cbq_fopt {
Tao Baod7db5942015-01-28 10:07:51 -0800427 __u32 split;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429 __u32 defmap;
430 __u32 defchange;
Ben Cheng655a7c02013-10-16 16:09:24 -0700431};
432struct tc_cbq_xstats {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 __u32 borrows;
435 __u32 overactions;
436 __s32 avgidle;
437 __s32 undertime;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700439};
440enum {
Tao Baod7db5942015-01-28 10:07:51 -0800441 TCA_CBQ_UNSPEC,
442 TCA_CBQ_LSSOPT,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 TCA_CBQ_WRROPT,
445 TCA_CBQ_FOPT,
446 TCA_CBQ_OVL_STRATEGY,
447 TCA_CBQ_RATE,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800449 TCA_CBQ_RTAB,
450 TCA_CBQ_POLICE,
451 __TCA_CBQ_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700452};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454#define TCA_CBQ_MAX (__TCA_CBQ_MAX - 1)
455enum {
Tao Baod7db5942015-01-28 10:07:51 -0800456 TCA_DSMARK_UNSPEC,
457 TCA_DSMARK_INDICES,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 TCA_DSMARK_DEFAULT_INDEX,
460 TCA_DSMARK_SET_TC_INDEX,
461 TCA_DSMARK_MASK,
462 TCA_DSMARK_VALUE,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800464 __TCA_DSMARK_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700465};
Ben Cheng655a7c02013-10-16 16:09:24 -0700466#define TCA_DSMARK_MAX (__TCA_DSMARK_MAX - 1)
467enum {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800469 TCA_ATM_UNSPEC,
470 TCA_ATM_FD,
471 TCA_ATM_PTR,
472 TCA_ATM_HDR,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800474 TCA_ATM_EXCESS,
475 TCA_ATM_ADDR,
476 TCA_ATM_STATE,
477 __TCA_ATM_MAX,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700479};
480#define TCA_ATM_MAX (__TCA_ATM_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700481enum {
Tao Baod7db5942015-01-28 10:07:51 -0800482 TCA_NETEM_UNSPEC,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800484 TCA_NETEM_CORR,
485 TCA_NETEM_DELAY_DIST,
486 TCA_NETEM_REORDER,
487 TCA_NETEM_CORRUPT,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800489 TCA_NETEM_LOSS,
490 TCA_NETEM_RATE,
491 TCA_NETEM_ECN,
492 TCA_NETEM_RATE64,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494 __TCA_NETEM_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700495};
496#define TCA_NETEM_MAX (__TCA_NETEM_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700497struct tc_netem_qopt {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800499 __u32 latency;
500 __u32 limit;
501 __u32 loss;
502 __u32 gap;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800504 __u32 duplicate;
505 __u32 jitter;
Ben Cheng655a7c02013-10-16 16:09:24 -0700506};
Ben Cheng655a7c02013-10-16 16:09:24 -0700507struct tc_netem_corr {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800509 __u32 delay_corr;
510 __u32 loss_corr;
511 __u32 dup_corr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700512};
Christopher Ferris38062f92014-07-09 15:33:25 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700514struct tc_netem_reorder {
Tao Baod7db5942015-01-28 10:07:51 -0800515 __u32 probability;
516 __u32 correlation;
Ben Cheng655a7c02013-10-16 16:09:24 -0700517};
Christopher Ferris38062f92014-07-09 15:33:25 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519struct tc_netem_corrupt {
Tao Baod7db5942015-01-28 10:07:51 -0800520 __u32 probability;
521 __u32 correlation;
Ben Cheng655a7c02013-10-16 16:09:24 -0700522};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700524struct tc_netem_rate {
Tao Baod7db5942015-01-28 10:07:51 -0800525 __u32 rate;
526 __s32 packet_overhead;
527 __u32 cell_size;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800529 __s32 cell_overhead;
Ben Cheng655a7c02013-10-16 16:09:24 -0700530};
531enum {
Tao Baod7db5942015-01-28 10:07:51 -0800532 NETEM_LOSS_UNSPEC,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800534 NETEM_LOSS_GI,
535 NETEM_LOSS_GE,
536 __NETEM_LOSS_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700537};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700539#define NETEM_LOSS_MAX (__NETEM_LOSS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700540struct tc_netem_gimodel {
Tao Baod7db5942015-01-28 10:07:51 -0800541 __u32 p13;
542 __u32 p31;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800544 __u32 p32;
545 __u32 p14;
546 __u32 p23;
Ben Cheng655a7c02013-10-16 16:09:24 -0700547};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700549struct tc_netem_gemodel {
Tao Baod7db5942015-01-28 10:07:51 -0800550 __u32 p;
551 __u32 r;
552 __u32 h;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800554 __u32 k1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700555};
556#define NETEM_DIST_SCALE 8192
Ben Cheng655a7c02013-10-16 16:09:24 -0700557#define NETEM_DIST_MAX 16384
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700559enum {
Tao Baod7db5942015-01-28 10:07:51 -0800560 TCA_DRR_UNSPEC,
561 TCA_DRR_QUANTUM,
562 __TCA_DRR_MAX
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700564};
Ben Cheng655a7c02013-10-16 16:09:24 -0700565#define TCA_DRR_MAX (__TCA_DRR_MAX - 1)
566struct tc_drr_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800567 __u32 deficit;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700569};
Ben Cheng655a7c02013-10-16 16:09:24 -0700570#define TC_QOPT_BITMASK 15
571#define TC_QOPT_MAX_QUEUE 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700572struct tc_mqprio_qopt {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800574 __u8 num_tc;
575 __u8 prio_tc_map[TC_QOPT_BITMASK + 1];
576 __u8 hw;
577 __u16 count[TC_QOPT_MAX_QUEUE];
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800579 __u16 offset[TC_QOPT_MAX_QUEUE];
Ben Cheng655a7c02013-10-16 16:09:24 -0700580};
581enum {
Tao Baod7db5942015-01-28 10:07:51 -0800582 TCA_SFB_UNSPEC,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800584 TCA_SFB_PARMS,
585 __TCA_SFB_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700586};
Ben Cheng655a7c02013-10-16 16:09:24 -0700587#define TCA_SFB_MAX (__TCA_SFB_MAX - 1)
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700589struct tc_sfb_qopt {
Tao Baod7db5942015-01-28 10:07:51 -0800590 __u32 rehash_interval;
591 __u32 warmup_time;
592 __u32 max;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800594 __u32 bin_size;
595 __u32 increment;
596 __u32 decrement;
597 __u32 limit;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800599 __u32 penalty_rate;
600 __u32 penalty_burst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700601};
Ben Cheng655a7c02013-10-16 16:09:24 -0700602struct tc_sfb_xstats {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800604 __u32 earlydrop;
605 __u32 penaltydrop;
606 __u32 bucketdrop;
607 __u32 queuedrop;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800609 __u32 childdrop;
610 __u32 marked;
611 __u32 maxqlen;
612 __u32 maxprob;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800614 __u32 avgprob;
Ben Cheng655a7c02013-10-16 16:09:24 -0700615};
616#define SFB_MAX_PROB 0xFFFF
Ben Cheng655a7c02013-10-16 16:09:24 -0700617enum {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800619 TCA_QFQ_UNSPEC,
620 TCA_QFQ_WEIGHT,
621 TCA_QFQ_LMAX,
622 __TCA_QFQ_MAX
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700624};
Ben Cheng655a7c02013-10-16 16:09:24 -0700625#define TCA_QFQ_MAX (__TCA_QFQ_MAX - 1)
626struct tc_qfq_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800627 __u32 weight;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800629 __u32 lmax;
Ben Cheng655a7c02013-10-16 16:09:24 -0700630};
631enum {
Tao Baod7db5942015-01-28 10:07:51 -0800632 TCA_CODEL_UNSPEC,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800634 TCA_CODEL_TARGET,
635 TCA_CODEL_LIMIT,
636 TCA_CODEL_INTERVAL,
637 TCA_CODEL_ECN,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800639 __TCA_CODEL_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700640};
641#define TCA_CODEL_MAX (__TCA_CODEL_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700642struct tc_codel_xstats {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800644 __u32 maxpacket;
645 __u32 count;
646 __u32 lastcount;
647 __u32 ldelay;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800649 __s32 drop_next;
650 __u32 drop_overlimit;
651 __u32 ecn_mark;
652 __u32 dropping;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700654};
Ben Cheng655a7c02013-10-16 16:09:24 -0700655enum {
Tao Baod7db5942015-01-28 10:07:51 -0800656 TCA_FQ_CODEL_UNSPEC,
657 TCA_FQ_CODEL_TARGET,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800659 TCA_FQ_CODEL_LIMIT,
660 TCA_FQ_CODEL_INTERVAL,
661 TCA_FQ_CODEL_ECN,
662 TCA_FQ_CODEL_FLOWS,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800664 TCA_FQ_CODEL_QUANTUM,
665 __TCA_FQ_CODEL_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700666};
Ben Cheng655a7c02013-10-16 16:09:24 -0700667#define TCA_FQ_CODEL_MAX (__TCA_FQ_CODEL_MAX - 1)
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700669enum {
Tao Baod7db5942015-01-28 10:07:51 -0800670 TCA_FQ_CODEL_XSTATS_QDISC,
671 TCA_FQ_CODEL_XSTATS_CLASS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700672};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700674struct tc_fq_codel_qd_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800675 __u32 maxpacket;
676 __u32 drop_overlimit;
677 __u32 ecn_mark;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800679 __u32 new_flow_count;
680 __u32 new_flows_len;
681 __u32 old_flows_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700682};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700684struct tc_fq_codel_cl_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800685 __s32 deficit;
686 __u32 ldelay;
687 __u32 count;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800689 __u32 lastcount;
690 __u32 dropping;
691 __s32 drop_next;
Ben Cheng655a7c02013-10-16 16:09:24 -0700692};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700694struct tc_fq_codel_xstats {
Tao Baod7db5942015-01-28 10:07:51 -0800695 __u32 type;
696 union {
697 struct tc_fq_codel_qd_stats qdisc_stats;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800699 struct tc_fq_codel_cl_stats class_stats;
700 };
Ben Cheng655a7c02013-10-16 16:09:24 -0700701};
Christopher Ferris38062f92014-07-09 15:33:25 -0700702enum {
703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800704 TCA_FQ_UNSPEC,
705 TCA_FQ_PLIMIT,
706 TCA_FQ_FLOW_PLIMIT,
707 TCA_FQ_QUANTUM,
Christopher Ferris38062f92014-07-09 15:33:25 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800709 TCA_FQ_INITIAL_QUANTUM,
710 TCA_FQ_RATE_ENABLE,
711 TCA_FQ_FLOW_DEFAULT_RATE,
712 TCA_FQ_FLOW_MAX_RATE,
Christopher Ferris38062f92014-07-09 15:33:25 -0700713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800714 TCA_FQ_BUCKETS_LOG,
715 TCA_FQ_FLOW_REFILL_DELAY,
716 __TCA_FQ_MAX
Christopher Ferris38062f92014-07-09 15:33:25 -0700717};
718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
719#define TCA_FQ_MAX (__TCA_FQ_MAX - 1)
720struct tc_fq_qd_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800721 __u64 gc_flows;
722 __u64 highprio_packets;
Christopher Ferris38062f92014-07-09 15:33:25 -0700723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800724 __u64 tcp_retrans;
725 __u64 throttled;
726 __u64 flows_plimit;
727 __u64 pkts_too_long;
Christopher Ferris38062f92014-07-09 15:33:25 -0700728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800729 __u64 allocation_errors;
730 __s64 time_next_delayed_flow;
731 __u32 flows;
732 __u32 inactive_flows;
Christopher Ferris38062f92014-07-09 15:33:25 -0700733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800734 __u32 throttled_flows;
735 __u32 pad;
Christopher Ferris38062f92014-07-09 15:33:25 -0700736};
737enum {
738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800739 TCA_HHF_UNSPEC,
740 TCA_HHF_BACKLOG_LIMIT,
741 TCA_HHF_QUANTUM,
742 TCA_HHF_HH_FLOWS_LIMIT,
Christopher Ferris38062f92014-07-09 15:33:25 -0700743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800744 TCA_HHF_RESET_TIMEOUT,
745 TCA_HHF_ADMIT_BYTES,
746 TCA_HHF_EVICT_TIMEOUT,
747 TCA_HHF_NON_HH_WEIGHT,
Christopher Ferris38062f92014-07-09 15:33:25 -0700748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800749 __TCA_HHF_MAX
Christopher Ferris38062f92014-07-09 15:33:25 -0700750};
751#define TCA_HHF_MAX (__TCA_HHF_MAX - 1)
752struct tc_hhf_xstats {
753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800754 __u32 drop_overlimit;
755 __u32 hh_overlimit;
756 __u32 hh_tot_count;
757 __u32 hh_cur_count;
Christopher Ferris38062f92014-07-09 15:33:25 -0700758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
759};
760enum {
Tao Baod7db5942015-01-28 10:07:51 -0800761 TCA_PIE_UNSPEC,
762 TCA_PIE_TARGET,
Christopher Ferris38062f92014-07-09 15:33:25 -0700763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800764 TCA_PIE_LIMIT,
765 TCA_PIE_TUPDATE,
766 TCA_PIE_ALPHA,
767 TCA_PIE_BETA,
Christopher Ferris38062f92014-07-09 15:33:25 -0700768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800769 TCA_PIE_ECN,
770 TCA_PIE_BYTEMODE,
771 __TCA_PIE_MAX
Christopher Ferris38062f92014-07-09 15:33:25 -0700772};
773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
774#define TCA_PIE_MAX (__TCA_PIE_MAX - 1)
775struct tc_pie_xstats {
Tao Baod7db5942015-01-28 10:07:51 -0800776 __u32 prob;
777 __u32 delay;
Christopher Ferris38062f92014-07-09 15:33:25 -0700778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800779 __u32 avg_dq_rate;
780 __u32 packets_in;
781 __u32 dropped;
782 __u32 overlimit;
Christopher Ferris38062f92014-07-09 15:33:25 -0700783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800784 __u32 maxq;
785 __u32 ecn_mark;
Christopher Ferris38062f92014-07-09 15:33:25 -0700786};
Ben Cheng655a7c02013-10-16 16:09:24 -0700787#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */