xref: /OK3568_Linux_fs/kernel/include/uapi/linux/tc_act/tc_sample.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef __LINUX_TC_SAMPLE_H
3*4882a593Smuzhiyun #define __LINUX_TC_SAMPLE_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/types.h>
6*4882a593Smuzhiyun #include <linux/pkt_cls.h>
7*4882a593Smuzhiyun #include <linux/if_ether.h>
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun struct tc_sample {
10*4882a593Smuzhiyun 	tc_gen;
11*4882a593Smuzhiyun };
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun enum {
14*4882a593Smuzhiyun 	TCA_SAMPLE_UNSPEC,
15*4882a593Smuzhiyun 	TCA_SAMPLE_TM,
16*4882a593Smuzhiyun 	TCA_SAMPLE_PARMS,
17*4882a593Smuzhiyun 	TCA_SAMPLE_RATE,
18*4882a593Smuzhiyun 	TCA_SAMPLE_TRUNC_SIZE,
19*4882a593Smuzhiyun 	TCA_SAMPLE_PSAMPLE_GROUP,
20*4882a593Smuzhiyun 	TCA_SAMPLE_PAD,
21*4882a593Smuzhiyun 	__TCA_SAMPLE_MAX
22*4882a593Smuzhiyun };
23*4882a593Smuzhiyun #define TCA_SAMPLE_MAX (__TCA_SAMPLE_MAX - 1)
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #endif
26