Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / tc_act / tc_mirred.h
blobc61e76f3c23b8d46a4a3da076f57c96dd157fac3
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __LINUX_TC_MIR_H
3 #define __LINUX_TC_MIR_H
5 #include <linux/types.h>
6 #include <linux/pkt_cls.h>
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 */
13 struct tc_mirred {
14 tc_gen;
15 int eaction; /* one of IN/EGRESS_MIRROR/REDIR */
16 __u32 ifindex; /* ifindex of egress port */
19 enum {
20 TCA_MIRRED_UNSPEC,
21 TCA_MIRRED_TM,
22 TCA_MIRRED_PARMS,
23 TCA_MIRRED_PAD,
24 TCA_MIRRED_BLOCKID,
25 __TCA_MIRRED_MAX
27 #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1)
29 #endif