blob: 3e8b65fb66647143a13865fae6b4841edf1c6fb6 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_PKT_CLS_H
2#define __LINUX_PKT_CLS_H
3
Jaswinder Singh Rajputed307442009-01-30 22:05:32 +05304#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#include <linux/pkt_sched.h>
6
Florian Westphalbd5850d2015-05-21 02:26:24 +02007#ifdef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -07008/* I think i could have done better macros ; for now this is stolen from
9 * some arch/mips code - jhs
10*/
11#define _TC_MAKE32(x) ((x))
12
13#define _TC_MAKEMASK1(n) (_TC_MAKE32(1) << _TC_MAKE32(n))
14#define _TC_MAKEMASK(v,n) (_TC_MAKE32((_TC_MAKE32(1)<<(v))-1) << _TC_MAKE32(n))
15#define _TC_MAKEVALUE(v,n) (_TC_MAKE32(v) << _TC_MAKE32(n))
16#define _TC_GETVALUE(v,n,m) ((_TC_MAKE32(v) & _TC_MAKE32(m)) >> _TC_MAKE32(n))
17
18/* verdict bit breakdown
19 *
20bit 0: when set -> this packet has been munged already
21
22bit 1: when set -> It is ok to munge this packet
23
24bit 2,3,4,5: Reclassify counter - sort of reverse TTL - if exceeded
25assume loop
26
27bit 6,7: Where this packet was last seen
280: Above the transmit example at the socket level
291: on the Ingress
302: on the Egress
31
32bit 8: when set --> Request not to classify on ingress.
33
34bits 9,10,11: redirect counter - redirect TTL. Loop avoidance
35
36 *
37 * */
38
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#define S_TC_FROM _TC_MAKE32(6)
40#define M_TC_FROM _TC_MAKEMASK(2,S_TC_FROM)
41#define G_TC_FROM(x) _TC_GETVALUE(x,S_TC_FROM,M_TC_FROM)
42#define V_TC_FROM(x) _TC_MAKEVALUE(x,S_TC_FROM)
43#define SET_TC_FROM(v,n) ((V_TC_FROM(n)) | (v & ~M_TC_FROM))
44#define AT_STACK 0x0
45#define AT_INGRESS 0x1
46#define AT_EGRESS 0x2
47
48#define TC_NCLS _TC_MAKEMASK1(8)
49#define SET_TC_NCLS(v) ( TC_NCLS | (v & ~TC_NCLS))
50#define CLR_TC_NCLS(v) ( v & ~TC_NCLS)
51
Linus Torvalds1da177e2005-04-16 15:20:36 -070052#define S_TC_AT _TC_MAKE32(12)
53#define M_TC_AT _TC_MAKEMASK(2,S_TC_AT)
54#define G_TC_AT(x) _TC_GETVALUE(x,S_TC_AT,M_TC_AT)
55#define V_TC_AT(x) _TC_MAKEVALUE(x,S_TC_AT)
56#define SET_TC_AT(v,n) ((V_TC_AT(n)) | (v & ~M_TC_AT))
57
Florian Westphalbd5850d2015-05-21 02:26:24 +020058#define MAX_REC_LOOP 4
59#define MAX_RED_LOOP 4
60#endif
61
Linus Torvalds1da177e2005-04-16 15:20:36 -070062/* Action attributes */
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080063enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -070064 TCA_ACT_UNSPEC,
65 TCA_ACT_KIND,
66 TCA_ACT_OPTIONS,
67 TCA_ACT_INDEX,
68 TCA_ACT_STATS,
Nicolas Dichtel9854518e2016-04-26 10:06:18 +020069 TCA_ACT_PAD,
Linus Torvalds1da177e2005-04-16 15:20:36 -070070 __TCA_ACT_MAX
71};
72
73#define TCA_ACT_MAX __TCA_ACT_MAX
74#define TCA_OLD_COMPAT (TCA_ACT_MAX+1)
75#define TCA_ACT_MAX_PRIO 32
76#define TCA_ACT_BIND 1
77#define TCA_ACT_NOBIND 0
78#define TCA_ACT_UNBIND 1
79#define TCA_ACT_NOUNBIND 0
80#define TCA_ACT_REPLACE 1
81#define TCA_ACT_NOREPLACE 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
83#define TC_ACT_UNSPEC (-1)
84#define TC_ACT_OK 0
85#define TC_ACT_RECLASSIFY 1
86#define TC_ACT_SHOT 2
87#define TC_ACT_PIPE 3
88#define TC_ACT_STOLEN 4
89#define TC_ACT_QUEUED 5
90#define TC_ACT_REPEAT 6
Alexei Starovoitov27b29f62015-09-15 23:05:43 -070091#define TC_ACT_REDIRECT 7
Linus Torvalds1da177e2005-04-16 15:20:36 -070092#define TC_ACT_JUMP 0x10000000
93
94/* Action type identifiers*/
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080095enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -070096 TCA_ID_UNSPEC=0,
97 TCA_ID_POLICE=1,
98 /* other actions go here */
99 __TCA_ID_MAX=255
100};
101
102#define TCA_ID_MAX __TCA_ID_MAX
103
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800104struct tc_police {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105 __u32 index;
106 int action;
107#define TC_POLICE_UNSPEC TC_ACT_UNSPEC
108#define TC_POLICE_OK TC_ACT_OK
109#define TC_POLICE_RECLASSIFY TC_ACT_RECLASSIFY
110#define TC_POLICE_SHOT TC_ACT_SHOT
111#define TC_POLICE_PIPE TC_ACT_PIPE
112
113 __u32 limit;
114 __u32 burst;
115 __u32 mtu;
116 struct tc_ratespec rate;
117 struct tc_ratespec peakrate;
118 int refcnt;
119 int bindcnt;
120 __u32 capab;
121};
122
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800123struct tcf_t {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124 __u64 install;
125 __u64 lastuse;
126 __u64 expires;
127};
128
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800129struct tc_cnt {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130 int refcnt;
131 int bindcnt;
132};
133
134#define tc_gen \
135 __u32 index; \
136 __u32 capab; \
137 int action; \
138 int refcnt; \
139 int bindcnt
140
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800141enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142 TCA_POLICE_UNSPEC,
143 TCA_POLICE_TBF,
144 TCA_POLICE_RATE,
145 TCA_POLICE_PEAKRATE,
146 TCA_POLICE_AVRATE,
147 TCA_POLICE_RESULT,
148 __TCA_POLICE_MAX
149#define TCA_POLICE_RESULT TCA_POLICE_RESULT
150};
151
152#define TCA_POLICE_MAX (__TCA_POLICE_MAX - 1)
153
Samudrala, Sridhar760edee2016-05-12 17:08:22 -0700154/* tca flags definitions */
155#define TCA_CLS_FLAGS_SKIP_HW (1 << 0)
156
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157/* U32 filters */
158
159#define TC_U32_HTID(h) ((h)&0xFFF00000)
160#define TC_U32_USERHTID(h) (TC_U32_HTID(h)>>20)
161#define TC_U32_HASH(h) (((h)>>12)&0xFF)
162#define TC_U32_NODE(h) ((h)&0xFFF)
163#define TC_U32_KEY(h) ((h)&0xFFFFF)
164#define TC_U32_UNSPEC 0
165#define TC_U32_ROOT (0xFFF00000)
166
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800167enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168 TCA_U32_UNSPEC,
169 TCA_U32_CLASSID,
170 TCA_U32_HASH,
171 TCA_U32_LINK,
172 TCA_U32_DIVISOR,
173 TCA_U32_SEL,
174 TCA_U32_POLICE,
175 TCA_U32_ACT,
176 TCA_U32_INDEV,
177 TCA_U32_PCNT,
178 TCA_U32_MARK,
John Fastabend9e8ce792016-02-26 07:54:39 -0800179 TCA_U32_FLAGS,
Nicolas Dichtel9854518e2016-04-26 10:06:18 +0200180 TCA_U32_PAD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700181 __TCA_U32_MAX
182};
183
184#define TCA_U32_MAX (__TCA_U32_MAX - 1)
185
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800186struct tc_u32_key {
Al Viro0382b9c2008-03-17 22:46:46 -0700187 __be32 mask;
188 __be32 val;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700189 int off;
190 int offmask;
191};
192
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800193struct tc_u32_sel {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194 unsigned char flags;
195 unsigned char offshift;
196 unsigned char nkeys;
197
Al Viro0382b9c2008-03-17 22:46:46 -0700198 __be16 offmask;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199 __u16 off;
200 short offoff;
201
202 short hoff;
Al Viro0382b9c2008-03-17 22:46:46 -0700203 __be32 hmask;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700204 struct tc_u32_key keys[0];
205};
206
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800207struct tc_u32_mark {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700208 __u32 val;
209 __u32 mask;
210 __u32 success;
211};
212
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800213struct tc_u32_pcnt {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700214 __u64 rcnt;
215 __u64 rhit;
216 __u64 kcnts[0];
217};
218
219/* Flags */
220
221#define TC_U32_TERMINAL 1
222#define TC_U32_OFFSET 2
223#define TC_U32_VAROFFSET 4
224#define TC_U32_EAT 8
225
226#define TC_U32_MAXDEPTH 8
227
228
229/* RSVP filter */
230
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800231enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700232 TCA_RSVP_UNSPEC,
233 TCA_RSVP_CLASSID,
234 TCA_RSVP_DST,
235 TCA_RSVP_SRC,
236 TCA_RSVP_PINFO,
237 TCA_RSVP_POLICE,
238 TCA_RSVP_ACT,
239 __TCA_RSVP_MAX
240};
241
242#define TCA_RSVP_MAX (__TCA_RSVP_MAX - 1 )
243
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800244struct tc_rsvp_gpi {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700245 __u32 key;
246 __u32 mask;
247 int offset;
248};
249
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800250struct tc_rsvp_pinfo {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251 struct tc_rsvp_gpi dpi;
252 struct tc_rsvp_gpi spi;
253 __u8 protocol;
254 __u8 tunnelid;
255 __u8 tunnelhdr;
Patrick McHardy8a470772005-06-28 12:56:45 -0700256 __u8 pad;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257};
258
259/* ROUTE filter */
260
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800261enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700262 TCA_ROUTE4_UNSPEC,
263 TCA_ROUTE4_CLASSID,
264 TCA_ROUTE4_TO,
265 TCA_ROUTE4_FROM,
266 TCA_ROUTE4_IIF,
267 TCA_ROUTE4_POLICE,
268 TCA_ROUTE4_ACT,
269 __TCA_ROUTE4_MAX
270};
271
272#define TCA_ROUTE4_MAX (__TCA_ROUTE4_MAX - 1)
273
274
275/* FW filter */
276
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800277enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278 TCA_FW_UNSPEC,
279 TCA_FW_CLASSID,
280 TCA_FW_POLICE,
281 TCA_FW_INDEV, /* used by CONFIG_NET_CLS_IND */
282 TCA_FW_ACT, /* used by CONFIG_NET_CLS_ACT */
Patrick McHardyb4e9b522006-08-25 16:11:42 -0700283 TCA_FW_MASK,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700284 __TCA_FW_MAX
285};
286
287#define TCA_FW_MAX (__TCA_FW_MAX - 1)
288
289/* TC index filter */
290
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800291enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700292 TCA_TCINDEX_UNSPEC,
293 TCA_TCINDEX_HASH,
294 TCA_TCINDEX_MASK,
295 TCA_TCINDEX_SHIFT,
296 TCA_TCINDEX_FALL_THROUGH,
297 TCA_TCINDEX_CLASSID,
298 TCA_TCINDEX_POLICE,
299 TCA_TCINDEX_ACT,
300 __TCA_TCINDEX_MAX
301};
302
303#define TCA_TCINDEX_MAX (__TCA_TCINDEX_MAX - 1)
304
Patrick McHardye5dfb812008-01-31 18:37:42 -0800305/* Flow filter */
306
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800307enum {
Patrick McHardye5dfb812008-01-31 18:37:42 -0800308 FLOW_KEY_SRC,
309 FLOW_KEY_DST,
310 FLOW_KEY_PROTO,
311 FLOW_KEY_PROTO_SRC,
312 FLOW_KEY_PROTO_DST,
313 FLOW_KEY_IIF,
314 FLOW_KEY_PRIORITY,
315 FLOW_KEY_MARK,
316 FLOW_KEY_NFCT,
317 FLOW_KEY_NFCT_SRC,
318 FLOW_KEY_NFCT_DST,
319 FLOW_KEY_NFCT_PROTO_SRC,
320 FLOW_KEY_NFCT_PROTO_DST,
321 FLOW_KEY_RTCLASSID,
322 FLOW_KEY_SKUID,
323 FLOW_KEY_SKGID,
Patrick McHardy9ec13812008-02-05 16:21:04 -0800324 FLOW_KEY_VLAN_TAG,
Changli Gao739a91e2010-08-21 06:23:15 +0000325 FLOW_KEY_RXHASH,
Patrick McHardye5dfb812008-01-31 18:37:42 -0800326 __FLOW_KEY_MAX,
327};
328
329#define FLOW_KEY_MAX (__FLOW_KEY_MAX - 1)
330
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800331enum {
Patrick McHardye5dfb812008-01-31 18:37:42 -0800332 FLOW_MODE_MAP,
333 FLOW_MODE_HASH,
334};
335
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800336enum {
Patrick McHardye5dfb812008-01-31 18:37:42 -0800337 TCA_FLOW_UNSPEC,
338 TCA_FLOW_KEYS,
339 TCA_FLOW_MODE,
340 TCA_FLOW_BASECLASS,
341 TCA_FLOW_RSHIFT,
342 TCA_FLOW_ADDEND,
343 TCA_FLOW_MASK,
344 TCA_FLOW_XOR,
345 TCA_FLOW_DIVISOR,
346 TCA_FLOW_ACT,
347 TCA_FLOW_POLICE,
348 TCA_FLOW_EMATCHES,
Patrick McHardy72d97942008-07-14 20:36:32 -0700349 TCA_FLOW_PERTURB,
Patrick McHardye5dfb812008-01-31 18:37:42 -0800350 __TCA_FLOW_MAX
351};
352
353#define TCA_FLOW_MAX (__TCA_FLOW_MAX - 1)
354
Linus Torvalds1da177e2005-04-16 15:20:36 -0700355/* Basic filter */
356
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800357enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700358 TCA_BASIC_UNSPEC,
359 TCA_BASIC_CLASSID,
360 TCA_BASIC_EMATCHES,
361 TCA_BASIC_ACT,
362 TCA_BASIC_POLICE,
363 __TCA_BASIC_MAX
364};
365
366#define TCA_BASIC_MAX (__TCA_BASIC_MAX - 1)
367
Thomas Graff4009232008-11-07 22:56:00 -0800368
369/* Cgroup classifier */
370
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800371enum {
Thomas Graff4009232008-11-07 22:56:00 -0800372 TCA_CGROUP_UNSPEC,
373 TCA_CGROUP_ACT,
374 TCA_CGROUP_POLICE,
375 TCA_CGROUP_EMATCHES,
376 __TCA_CGROUP_MAX,
377};
378
379#define TCA_CGROUP_MAX (__TCA_CGROUP_MAX - 1)
380
Daniel Borkmann7d1d65c2013-10-28 16:43:02 +0100381/* BPF classifier */
382
Daniel Borkmann045efa82015-09-15 23:05:42 -0700383#define TCA_BPF_FLAG_ACT_DIRECT (1 << 0)
384
Daniel Borkmann7d1d65c2013-10-28 16:43:02 +0100385enum {
386 TCA_BPF_UNSPEC,
387 TCA_BPF_ACT,
388 TCA_BPF_POLICE,
389 TCA_BPF_CLASSID,
390 TCA_BPF_OPS_LEN,
391 TCA_BPF_OPS,
Daniel Borkmanne2e9b652015-03-01 12:31:48 +0100392 TCA_BPF_FD,
393 TCA_BPF_NAME,
Daniel Borkmann045efa82015-09-15 23:05:42 -0700394 TCA_BPF_FLAGS,
Daniel Borkmann7d1d65c2013-10-28 16:43:02 +0100395 __TCA_BPF_MAX,
396};
397
398#define TCA_BPF_MAX (__TCA_BPF_MAX - 1)
399
Jiri Pirko77b99002015-05-12 14:56:21 +0200400/* Flower classifier */
401
402enum {
403 TCA_FLOWER_UNSPEC,
404 TCA_FLOWER_CLASSID,
405 TCA_FLOWER_INDEV,
406 TCA_FLOWER_ACT,
407 TCA_FLOWER_KEY_ETH_DST, /* ETH_ALEN */
408 TCA_FLOWER_KEY_ETH_DST_MASK, /* ETH_ALEN */
409 TCA_FLOWER_KEY_ETH_SRC, /* ETH_ALEN */
410 TCA_FLOWER_KEY_ETH_SRC_MASK, /* ETH_ALEN */
411 TCA_FLOWER_KEY_ETH_TYPE, /* be16 */
412 TCA_FLOWER_KEY_IP_PROTO, /* u8 */
413 TCA_FLOWER_KEY_IPV4_SRC, /* be32 */
414 TCA_FLOWER_KEY_IPV4_SRC_MASK, /* be32 */
415 TCA_FLOWER_KEY_IPV4_DST, /* be32 */
416 TCA_FLOWER_KEY_IPV4_DST_MASK, /* be32 */
417 TCA_FLOWER_KEY_IPV6_SRC, /* struct in6_addr */
418 TCA_FLOWER_KEY_IPV6_SRC_MASK, /* struct in6_addr */
419 TCA_FLOWER_KEY_IPV6_DST, /* struct in6_addr */
420 TCA_FLOWER_KEY_IPV6_DST_MASK, /* struct in6_addr */
421 TCA_FLOWER_KEY_TCP_SRC, /* be16 */
422 TCA_FLOWER_KEY_TCP_DST, /* be16 */
423 TCA_FLOWER_KEY_UDP_SRC, /* be16 */
424 TCA_FLOWER_KEY_UDP_DST, /* be16 */
Amir Vadai5b33f482016-03-08 12:42:29 +0200425
426 TCA_FLOWER_FLAGS,
Jiri Pirko77b99002015-05-12 14:56:21 +0200427 __TCA_FLOWER_MAX,
428};
429
430#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
431
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432/* Extended Matches */
433
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800434struct tcf_ematch_tree_hdr {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700435 __u16 nmatches;
436 __u16 progid;
437};
438
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800439enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440 TCA_EMATCH_TREE_UNSPEC,
441 TCA_EMATCH_TREE_HDR,
442 TCA_EMATCH_TREE_LIST,
443 __TCA_EMATCH_TREE_MAX
444};
445#define TCA_EMATCH_TREE_MAX (__TCA_EMATCH_TREE_MAX - 1)
446
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800447struct tcf_ematch_hdr {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700448 __u16 matchid;
449 __u16 kind;
450 __u16 flags;
451 __u16 pad; /* currently unused */
452};
453
454/* 0 1
455 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
456 * +-----------------------+-+-+---+
457 * | Unused |S|I| R |
458 * +-----------------------+-+-+---+
459 *
460 * R(2) ::= relation to next ematch
461 * where: 0 0 END (last ematch)
462 * 0 1 AND
463 * 1 0 OR
464 * 1 1 Unused (invalid)
465 * I(1) ::= invert result
466 * S(1) ::= simple payload
467 */
468#define TCF_EM_REL_END 0
469#define TCF_EM_REL_AND (1<<0)
470#define TCF_EM_REL_OR (1<<1)
471#define TCF_EM_INVERT (1<<2)
472#define TCF_EM_SIMPLE (1<<3)
473
474#define TCF_EM_REL_MASK 3
475#define TCF_EM_REL_VALID(v) (((v) & TCF_EM_REL_MASK) != TCF_EM_REL_MASK)
476
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800477enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478 TCF_LAYER_LINK,
479 TCF_LAYER_NETWORK,
480 TCF_LAYER_TRANSPORT,
481 __TCF_LAYER_MAX
482};
483#define TCF_LAYER_MAX (__TCF_LAYER_MAX - 1)
484
485/* Ematch type assignments
486 * 1..32767 Reserved for ematches inside kernel tree
487 * 32768..65535 Free to use, not reliable
488 */
Patrick McHardydb3d99c2007-07-11 19:46:26 -0700489#define TCF_EM_CONTAINER 0
490#define TCF_EM_CMP 1
491#define TCF_EM_NBYTE 2
492#define TCF_EM_U32 3
493#define TCF_EM_META 4
494#define TCF_EM_TEXT 5
Rostislav Lisovyf057bbb2012-07-04 05:32:03 +0200495#define TCF_EM_VLAN 6
496#define TCF_EM_CANID 7
Florian Westphal6d4fa852012-07-11 10:56:57 +0000497#define TCF_EM_IPSET 8
498#define TCF_EM_MAX 8
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800500enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700501 TCF_EM_PROG_TC
502};
503
Eric Dumazetd94d9fe2009-11-04 09:50:58 -0800504enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 TCF_EM_OPND_EQ,
506 TCF_EM_OPND_GT,
507 TCF_EM_OPND_LT
508};
509
510#endif