blob: 8c87bae0bebab66eae70d3571f69188df7e17247 [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_CLS_H
20#define __LINUX_PKT_CLS_H
21#include <linux/types.h>
22#include <linux/pkt_sched.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define _TC_MAKE32(x) ((x))
25#define _TC_MAKEMASK1(n) (_TC_MAKE32(1) << _TC_MAKE32(n))
Tao Baod7db5942015-01-28 10:07:51 -080026#define _TC_MAKEMASK(v,n) (_TC_MAKE32((_TC_MAKE32(1) << (v)) - 1) << _TC_MAKE32(n))
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define _TC_MAKEVALUE(v,n) (_TC_MAKE32(v) << _TC_MAKE32(n))
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define _TC_GETVALUE(v,n,m) ((_TC_MAKE32(v) & _TC_MAKE32(m)) >> _TC_MAKE32(n))
30#define TC_MUNGED _TC_MAKEMASK1(0)
Tao Baod7db5942015-01-28 10:07:51 -080031#define SET_TC_MUNGED(v) (TC_MUNGED | (v & ~TC_MUNGED))
32#define CLR_TC_MUNGED(v) (v & ~TC_MUNGED)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define TC_OK2MUNGE _TC_MAKEMASK1(1)
Tao Baod7db5942015-01-28 10:07:51 -080035#define SET_TC_OK2MUNGE(v) (TC_OK2MUNGE | (v & ~TC_OK2MUNGE))
36#define CLR_TC_OK2MUNGE(v) (v & ~TC_OK2MUNGE)
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define S_TC_VERD _TC_MAKE32(2)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039#define M_TC_VERD _TC_MAKEMASK(4, S_TC_VERD)
40#define G_TC_VERD(x) _TC_GETVALUE(x, S_TC_VERD, M_TC_VERD)
41#define V_TC_VERD(x) _TC_MAKEVALUE(x, S_TC_VERD)
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define SET_TC_VERD(v,n) ((V_TC_VERD(n)) | (v & ~M_TC_VERD))
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define S_TC_FROM _TC_MAKE32(6)
Tao Baod7db5942015-01-28 10:07:51 -080045#define M_TC_FROM _TC_MAKEMASK(2, S_TC_FROM)
46#define G_TC_FROM(x) _TC_GETVALUE(x, S_TC_FROM, M_TC_FROM)
47#define V_TC_FROM(x) _TC_MAKEVALUE(x, S_TC_FROM)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SET_TC_FROM(v,n) ((V_TC_FROM(n)) | (v & ~M_TC_FROM))
50#define AT_STACK 0x0
51#define AT_INGRESS 0x1
52#define AT_EGRESS 0x2
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define TC_NCLS _TC_MAKEMASK1(8)
Tao Baod7db5942015-01-28 10:07:51 -080055#define SET_TC_NCLS(v) (TC_NCLS | (v & ~TC_NCLS))
56#define CLR_TC_NCLS(v) (v & ~TC_NCLS)
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define S_TC_RTTL _TC_MAKE32(9)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059#define M_TC_RTTL _TC_MAKEMASK(3, S_TC_RTTL)
60#define G_TC_RTTL(x) _TC_GETVALUE(x, S_TC_RTTL, M_TC_RTTL)
61#define V_TC_RTTL(x) _TC_MAKEVALUE(x, S_TC_RTTL)
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define SET_TC_RTTL(v,n) ((V_TC_RTTL(n)) | (v & ~M_TC_RTTL))
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define S_TC_AT _TC_MAKE32(12)
Tao Baod7db5942015-01-28 10:07:51 -080065#define M_TC_AT _TC_MAKEMASK(2, S_TC_AT)
66#define G_TC_AT(x) _TC_GETVALUE(x, S_TC_AT, M_TC_AT)
67#define V_TC_AT(x) _TC_MAKEVALUE(x, S_TC_AT)
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define SET_TC_AT(v,n) ((V_TC_AT(n)) | (v & ~M_TC_AT))
70enum {
Tao Baod7db5942015-01-28 10:07:51 -080071 TCA_ACT_UNSPEC,
72 TCA_ACT_KIND,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 TCA_ACT_OPTIONS,
75 TCA_ACT_INDEX,
76 TCA_ACT_STATS,
77 __TCA_ACT_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79};
80#define TCA_ACT_MAX __TCA_ACT_MAX
Tao Baod7db5942015-01-28 10:07:51 -080081#define TCA_OLD_COMPAT (TCA_ACT_MAX + 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define TCA_ACT_MAX_PRIO 32
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define TCA_ACT_BIND 1
85#define TCA_ACT_NOBIND 0
86#define TCA_ACT_UNBIND 1
87#define TCA_ACT_NOUNBIND 0
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define TCA_ACT_REPLACE 1
90#define TCA_ACT_NOREPLACE 0
91#define MAX_REC_LOOP 4
92#define MAX_RED_LOOP 4
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094#define TC_ACT_UNSPEC (- 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define TC_ACT_OK 0
96#define TC_ACT_RECLASSIFY 1
97#define TC_ACT_SHOT 2
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define TC_ACT_PIPE 3
100#define TC_ACT_STOLEN 4
101#define TC_ACT_QUEUED 5
102#define TC_ACT_REPEAT 6
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define TC_ACT_JUMP 0x10000000
105enum {
Tao Baod7db5942015-01-28 10:07:51 -0800106 TCA_ID_UNSPEC = 0,
107 TCA_ID_POLICE = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __TCA_ID_MAX = 255
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111#define TCA_ID_MAX __TCA_ID_MAX
112struct tc_police {
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __u32 index;
115 int action;
Ben Cheng655a7c02013-10-16 16:09:24 -0700116#define TC_POLICE_UNSPEC TC_ACT_UNSPEC
117#define TC_POLICE_OK TC_ACT_OK
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define TC_POLICE_RECLASSIFY TC_ACT_RECLASSIFY
120#define TC_POLICE_SHOT TC_ACT_SHOT
121#define TC_POLICE_PIPE TC_ACT_PIPE
Tao Baod7db5942015-01-28 10:07:51 -0800122 __u32 limit;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u32 burst;
125 __u32 mtu;
126 struct tc_ratespec rate;
127 struct tc_ratespec peakrate;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 int refcnt;
130 int bindcnt;
131 __u32 capab;
Ben Cheng655a7c02013-10-16 16:09:24 -0700132};
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134struct tcf_t {
Tao Baod7db5942015-01-28 10:07:51 -0800135 __u64 install;
136 __u64 lastuse;
137 __u64 expires;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139};
140struct tc_cnt {
Tao Baod7db5942015-01-28 10:07:51 -0800141 int refcnt;
142 int bindcnt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144};
Tao Baod7db5942015-01-28 10:07:51 -0800145#define tc_gen __u32 index; __u32 capab; int action; int refcnt; int bindcnt
Ben Cheng655a7c02013-10-16 16:09:24 -0700146enum {
Tao Baod7db5942015-01-28 10:07:51 -0800147 TCA_POLICE_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 TCA_POLICE_TBF,
150 TCA_POLICE_RATE,
151 TCA_POLICE_PEAKRATE,
152 TCA_POLICE_AVRATE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 TCA_POLICE_RESULT,
155 __TCA_POLICE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700156#define TCA_POLICE_RESULT TCA_POLICE_RESULT
157};
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define TCA_POLICE_MAX (__TCA_POLICE_MAX - 1)
Tao Baod7db5942015-01-28 10:07:51 -0800160#define TC_U32_HTID(h) ((h) & 0xFFF00000)
161#define TC_U32_USERHTID(h) (TC_U32_HTID(h) >> 20)
162#define TC_U32_HASH(h) (((h) >> 12) & 0xFF)
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164#define TC_U32_NODE(h) ((h) & 0xFFF)
165#define TC_U32_KEY(h) ((h) & 0xFFFFF)
Ben Cheng655a7c02013-10-16 16:09:24 -0700166#define TC_U32_UNSPEC 0
167#define TC_U32_ROOT (0xFFF00000)
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169enum {
Tao Baod7db5942015-01-28 10:07:51 -0800170 TCA_U32_UNSPEC,
171 TCA_U32_CLASSID,
172 TCA_U32_HASH,
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 TCA_U32_LINK,
175 TCA_U32_DIVISOR,
176 TCA_U32_SEL,
177 TCA_U32_POLICE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 TCA_U32_ACT,
180 TCA_U32_INDEV,
181 TCA_U32_PCNT,
182 TCA_U32_MARK,
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 __TCA_U32_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700185};
186#define TCA_U32_MAX (__TCA_U32_MAX - 1)
187struct tc_u32_key {
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 __be32 mask;
190 __be32 val;
191 int off;
192 int offmask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194};
195struct tc_u32_sel {
Tao Baod7db5942015-01-28 10:07:51 -0800196 unsigned char flags;
197 unsigned char offshift;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 unsigned char nkeys;
200 __be16 offmask;
201 __u16 off;
202 short offoff;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 short hoff;
205 __be32 hmask;
206 struct tc_u32_key keys[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700207};
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209struct tc_u32_mark {
Tao Baod7db5942015-01-28 10:07:51 -0800210 __u32 val;
211 __u32 mask;
212 __u32 success;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214};
215struct tc_u32_pcnt {
Tao Baod7db5942015-01-28 10:07:51 -0800216 __u64 rcnt;
217 __u64 rhit;
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 __u64 kcnts[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700220};
221#define TC_U32_TERMINAL 1
222#define TC_U32_OFFSET 2
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224#define TC_U32_VAROFFSET 4
225#define TC_U32_EAT 8
226#define TC_U32_MAXDEPTH 8
227enum {
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 TCA_RSVP_UNSPEC,
230 TCA_RSVP_CLASSID,
231 TCA_RSVP_DST,
232 TCA_RSVP_SRC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 TCA_RSVP_PINFO,
235 TCA_RSVP_POLICE,
236 TCA_RSVP_ACT,
237 __TCA_RSVP_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239};
Tao Baod7db5942015-01-28 10:07:51 -0800240#define TCA_RSVP_MAX (__TCA_RSVP_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700241struct tc_rsvp_gpi {
Tao Baod7db5942015-01-28 10:07:51 -0800242 __u32 key;
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u32 mask;
245 int offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700246};
247struct tc_rsvp_pinfo {
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 struct tc_rsvp_gpi dpi;
250 struct tc_rsvp_gpi spi;
251 __u8 protocol;
252 __u8 tunnelid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 __u8 tunnelhdr;
255 __u8 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700256};
257enum {
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 TCA_ROUTE4_UNSPEC,
260 TCA_ROUTE4_CLASSID,
261 TCA_ROUTE4_TO,
262 TCA_ROUTE4_FROM,
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264 TCA_ROUTE4_IIF,
265 TCA_ROUTE4_POLICE,
266 TCA_ROUTE4_ACT,
267 __TCA_ROUTE4_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269};
270#define TCA_ROUTE4_MAX (__TCA_ROUTE4_MAX - 1)
271enum {
Tao Baod7db5942015-01-28 10:07:51 -0800272 TCA_FW_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 TCA_FW_CLASSID,
275 TCA_FW_POLICE,
276 TCA_FW_INDEV,
277 TCA_FW_ACT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 TCA_FW_MASK,
280 __TCA_FW_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700281};
282#define TCA_FW_MAX (__TCA_FW_MAX - 1)
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284enum {
Tao Baod7db5942015-01-28 10:07:51 -0800285 TCA_TCINDEX_UNSPEC,
286 TCA_TCINDEX_HASH,
287 TCA_TCINDEX_MASK,
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 TCA_TCINDEX_SHIFT,
290 TCA_TCINDEX_FALL_THROUGH,
291 TCA_TCINDEX_CLASSID,
292 TCA_TCINDEX_POLICE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 TCA_TCINDEX_ACT,
295 __TCA_TCINDEX_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700296};
297#define TCA_TCINDEX_MAX (__TCA_TCINDEX_MAX - 1)
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299enum {
Tao Baod7db5942015-01-28 10:07:51 -0800300 FLOW_KEY_SRC,
301 FLOW_KEY_DST,
302 FLOW_KEY_PROTO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304 FLOW_KEY_PROTO_SRC,
305 FLOW_KEY_PROTO_DST,
306 FLOW_KEY_IIF,
307 FLOW_KEY_PRIORITY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 FLOW_KEY_MARK,
310 FLOW_KEY_NFCT,
311 FLOW_KEY_NFCT_SRC,
312 FLOW_KEY_NFCT_DST,
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 FLOW_KEY_NFCT_PROTO_SRC,
315 FLOW_KEY_NFCT_PROTO_DST,
316 FLOW_KEY_RTCLASSID,
317 FLOW_KEY_SKUID,
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 FLOW_KEY_SKGID,
320 FLOW_KEY_VLAN_TAG,
321 FLOW_KEY_RXHASH,
322 __FLOW_KEY_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324};
325#define FLOW_KEY_MAX (__FLOW_KEY_MAX - 1)
326enum {
Tao Baod7db5942015-01-28 10:07:51 -0800327 FLOW_MODE_MAP,
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 FLOW_MODE_HASH,
Ben Cheng655a7c02013-10-16 16:09:24 -0700330};
331enum {
Tao Baod7db5942015-01-28 10:07:51 -0800332 TCA_FLOW_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 TCA_FLOW_KEYS,
335 TCA_FLOW_MODE,
336 TCA_FLOW_BASECLASS,
337 TCA_FLOW_RSHIFT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 TCA_FLOW_ADDEND,
340 TCA_FLOW_MASK,
341 TCA_FLOW_XOR,
342 TCA_FLOW_DIVISOR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 TCA_FLOW_ACT,
345 TCA_FLOW_POLICE,
346 TCA_FLOW_EMATCHES,
347 TCA_FLOW_PERTURB,
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 __TCA_FLOW_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700350};
351#define TCA_FLOW_MAX (__TCA_FLOW_MAX - 1)
352enum {
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 TCA_BASIC_UNSPEC,
355 TCA_BASIC_CLASSID,
356 TCA_BASIC_EMATCHES,
357 TCA_BASIC_ACT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 TCA_BASIC_POLICE,
360 __TCA_BASIC_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700361};
362#define TCA_BASIC_MAX (__TCA_BASIC_MAX - 1)
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364enum {
Tao Baod7db5942015-01-28 10:07:51 -0800365 TCA_CGROUP_UNSPEC,
366 TCA_CGROUP_ACT,
367 TCA_CGROUP_POLICE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369 TCA_CGROUP_EMATCHES,
370 __TCA_CGROUP_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700371};
372#define TCA_CGROUP_MAX (__TCA_CGROUP_MAX - 1)
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700374enum {
Tao Baod7db5942015-01-28 10:07:51 -0800375 TCA_BPF_UNSPEC,
376 TCA_BPF_ACT,
377 TCA_BPF_POLICE,
Christopher Ferris38062f92014-07-09 15:33:25 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 TCA_BPF_CLASSID,
380 TCA_BPF_OPS_LEN,
381 TCA_BPF_OPS,
382 __TCA_BPF_MAX,
Christopher Ferris38062f92014-07-09 15:33:25 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384};
385#define TCA_BPF_MAX (__TCA_BPF_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700386struct tcf_ematch_tree_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800387 __u16 nmatches;
Christopher Ferris38062f92014-07-09 15:33:25 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 __u16 progid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700390};
Ben Cheng655a7c02013-10-16 16:09:24 -0700391enum {
Tao Baod7db5942015-01-28 10:07:51 -0800392 TCA_EMATCH_TREE_UNSPEC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 TCA_EMATCH_TREE_HDR,
395 TCA_EMATCH_TREE_LIST,
396 __TCA_EMATCH_TREE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700397};
Christopher Ferris38062f92014-07-09 15:33:25 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399#define TCA_EMATCH_TREE_MAX (__TCA_EMATCH_TREE_MAX - 1)
400struct tcf_ematch_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800401 __u16 matchid;
402 __u16 kind;
Christopher Ferris38062f92014-07-09 15:33:25 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u16 flags;
405 __u16 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700406};
407#define TCF_EM_REL_END 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800409#define TCF_EM_REL_AND (1 << 0)
410#define TCF_EM_REL_OR (1 << 1)
411#define TCF_EM_INVERT (1 << 2)
412#define TCF_EM_SIMPLE (1 << 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414#define TCF_EM_REL_MASK 3
415#define TCF_EM_REL_VALID(v) (((v) & TCF_EM_REL_MASK) != TCF_EM_REL_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -0700416enum {
Tao Baod7db5942015-01-28 10:07:51 -0800417 TCF_LAYER_LINK,
Christopher Ferris38062f92014-07-09 15:33:25 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 TCF_LAYER_NETWORK,
420 TCF_LAYER_TRANSPORT,
421 __TCF_LAYER_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700422};
Christopher Ferris38062f92014-07-09 15:33:25 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700424#define TCF_LAYER_MAX (__TCF_LAYER_MAX - 1)
425#define TCF_EM_CONTAINER 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700426#define TCF_EM_CMP 1
427#define TCF_EM_NBYTE 2
Christopher Ferris38062f92014-07-09 15:33:25 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429#define TCF_EM_U32 3
430#define TCF_EM_META 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700431#define TCF_EM_TEXT 5
432#define TCF_EM_VLAN 6
Christopher Ferris38062f92014-07-09 15:33:25 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434#define TCF_EM_CANID 7
435#define TCF_EM_IPSET 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700436#define TCF_EM_MAX 8
437enum {
Christopher Ferris38062f92014-07-09 15:33:25 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 TCF_EM_PROG_TC
Ben Cheng655a7c02013-10-16 16:09:24 -0700440};
Ben Cheng655a7c02013-10-16 16:09:24 -0700441enum {
Tao Baod7db5942015-01-28 10:07:51 -0800442 TCF_EM_OPND_EQ,
Christopher Ferris38062f92014-07-09 15:33:25 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 TCF_EM_OPND_GT,
445 TCF_EM_OPND_LT
Ben Cheng655a7c02013-10-16 16:09:24 -0700446};
447#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */