1611128ebSDavid Howells #ifndef __LINUX_TC_GACT_H
2611128ebSDavid Howells #define __LINUX_TC_GACT_H
3611128ebSDavid Howells 
4611128ebSDavid Howells #include <linux/types.h>
5611128ebSDavid Howells #include <linux/pkt_cls.h>
6611128ebSDavid Howells 
7611128ebSDavid Howells #define TCA_ACT_GACT 5
8611128ebSDavid Howells struct tc_gact {
9611128ebSDavid Howells 	tc_gen;
10611128ebSDavid Howells 
11611128ebSDavid Howells };
12611128ebSDavid Howells 
13611128ebSDavid Howells struct tc_gact_p {
14611128ebSDavid Howells #define PGACT_NONE              0
15611128ebSDavid Howells #define PGACT_NETRAND           1
16611128ebSDavid Howells #define PGACT_DETERM            2
17611128ebSDavid Howells #define MAX_RAND                (PGACT_DETERM + 1 )
18611128ebSDavid Howells 	__u16                 ptype;
19611128ebSDavid Howells 	__u16                 pval;
20611128ebSDavid Howells 	int                   paction;
21611128ebSDavid Howells };
22611128ebSDavid Howells 
23611128ebSDavid Howells enum {
24611128ebSDavid Howells 	TCA_GACT_UNSPEC,
25611128ebSDavid Howells 	TCA_GACT_TM,
26611128ebSDavid Howells 	TCA_GACT_PARMS,
27611128ebSDavid Howells 	TCA_GACT_PROB,
28611128ebSDavid Howells 	__TCA_GACT_MAX
29611128ebSDavid Howells };
30611128ebSDavid Howells #define TCA_GACT_MAX (__TCA_GACT_MAX - 1)
31611128ebSDavid Howells 
32611128ebSDavid Howells #endif
33