16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2611128ebSDavid Howells #ifndef __LINUX_TC_GACT_H 3611128ebSDavid Howells #define __LINUX_TC_GACT_H 4611128ebSDavid Howells 5611128ebSDavid Howells #include <linux/types.h> 6611128ebSDavid Howells #include <linux/pkt_cls.h> 7611128ebSDavid Howells 8611128ebSDavid Howells #define TCA_ACT_GACT 5 9611128ebSDavid Howells struct tc_gact { 10611128ebSDavid Howells tc_gen; 11611128ebSDavid Howells 12611128ebSDavid Howells }; 13611128ebSDavid Howells 14611128ebSDavid Howells struct tc_gact_p { 15611128ebSDavid Howells #define PGACT_NONE 0 16611128ebSDavid Howells #define PGACT_NETRAND 1 17611128ebSDavid Howells #define PGACT_DETERM 2 18611128ebSDavid Howells #define MAX_RAND (PGACT_DETERM + 1 ) 19611128ebSDavid Howells __u16 ptype; 20611128ebSDavid Howells __u16 pval; 21611128ebSDavid Howells int paction; 22611128ebSDavid Howells }; 23611128ebSDavid Howells 24611128ebSDavid Howells enum { 25611128ebSDavid Howells TCA_GACT_UNSPEC, 26611128ebSDavid Howells TCA_GACT_TM, 27611128ebSDavid Howells TCA_GACT_PARMS, 28611128ebSDavid Howells TCA_GACT_PROB, 299854518eSNicolas Dichtel TCA_GACT_PAD, 30611128ebSDavid Howells __TCA_GACT_MAX 31611128ebSDavid Howells }; 32611128ebSDavid Howells #define TCA_GACT_MAX (__TCA_GACT_MAX - 1) 33611128ebSDavid Howells 34611128ebSDavid Howells #endif 35