xref: /linux/include/uapi/linux/tc_act/tc_gact.h (revision 611128eb3927941abcfdca5b7515cf02aab601ec)
1*611128ebSDavid Howells #ifndef __LINUX_TC_GACT_H
2*611128ebSDavid Howells #define __LINUX_TC_GACT_H
3*611128ebSDavid Howells 
4*611128ebSDavid Howells #include <linux/types.h>
5*611128ebSDavid Howells #include <linux/pkt_cls.h>
6*611128ebSDavid Howells 
7*611128ebSDavid Howells #define TCA_ACT_GACT 5
8*611128ebSDavid Howells struct tc_gact {
9*611128ebSDavid Howells 	tc_gen;
10*611128ebSDavid Howells 
11*611128ebSDavid Howells };
12*611128ebSDavid Howells 
13*611128ebSDavid Howells struct tc_gact_p {
14*611128ebSDavid Howells #define PGACT_NONE              0
15*611128ebSDavid Howells #define PGACT_NETRAND           1
16*611128ebSDavid Howells #define PGACT_DETERM            2
17*611128ebSDavid Howells #define MAX_RAND                (PGACT_DETERM + 1 )
18*611128ebSDavid Howells 	__u16                 ptype;
19*611128ebSDavid Howells 	__u16                 pval;
20*611128ebSDavid Howells 	int                   paction;
21*611128ebSDavid Howells };
22*611128ebSDavid Howells 
23*611128ebSDavid Howells enum {
24*611128ebSDavid Howells 	TCA_GACT_UNSPEC,
25*611128ebSDavid Howells 	TCA_GACT_TM,
26*611128ebSDavid Howells 	TCA_GACT_PARMS,
27*611128ebSDavid Howells 	TCA_GACT_PROB,
28*611128ebSDavid Howells 	__TCA_GACT_MAX
29*611128ebSDavid Howells };
30*611128ebSDavid Howells #define TCA_GACT_MAX (__TCA_GACT_MAX - 1)
31*611128ebSDavid Howells 
32*611128ebSDavid Howells #endif
33