Merge branches 'x86/acpi', 'x86/asm', 'x86/cpudetect', 'x86/crashdump', 'x86/debug...
[firefly-linux-kernel-4.4.55.git] / include / linux / tc_act / tc_mirred.h
1 #ifndef __LINUX_TC_MIR_H
2 #define __LINUX_TC_MIR_H
3
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
6
7 #define TCA_ACT_MIRRED 8
8 #define TCA_EGRESS_REDIR 1  /* packet redirect to EGRESS*/
9 #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */
10 #define TCA_INGRESS_REDIR 3  /* packet redirect to INGRESS*/
11 #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */
12                                                                                 
13 struct tc_mirred
14 {
15         tc_gen;
16         int                     eaction;   /* one of IN/EGRESS_MIRROR/REDIR */
17         __u32                   ifindex;  /* ifindex of egress port */
18 };
19                                                                                 
20 enum
21 {
22         TCA_MIRRED_UNSPEC,
23         TCA_MIRRED_TM,
24         TCA_MIRRED_PARMS,
25         __TCA_MIRRED_MAX
26 };
27 #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1)
28                                                                                 
29 #endif