]> git.proxmox.com Git - mirror_iproute2.git/blob - include/linux/tc_act/tc_sample.h
tc: Add support for the sample tc action
[mirror_iproute2.git] / include / linux / tc_act / tc_sample.h
1 #ifndef __LINUX_TC_SAMPLE_H
2 #define __LINUX_TC_SAMPLE_H
3
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
6 #include <linux/if_ether.h>
7
8 #define TCA_ACT_SAMPLE 26
9
10 struct tc_sample {
11 tc_gen;
12 };
13
14 enum {
15 TCA_SAMPLE_UNSPEC,
16 TCA_SAMPLE_TM,
17 TCA_SAMPLE_PARMS,
18 TCA_SAMPLE_RATE,
19 TCA_SAMPLE_TRUNC_SIZE,
20 TCA_SAMPLE_PSAMPLE_GROUP,
21 TCA_SAMPLE_PAD,
22 __TCA_SAMPLE_MAX
23 };
24 #define TCA_SAMPLE_MAX (__TCA_SAMPLE_MAX - 1)
25
26 #endif