Skip to content

Commit 993c9b7

Browse files
committed
even more
Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fb24b24 commit 993c9b7

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed

Makefile.deps

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ CFLAGS_rt-route:=$(call get_hdr_inc,__LINUX_RTNETLINK_H,rtnetlink.h)
4141
CFLAGS_rt-rule:=$(call get_hdr_inc,__LINUX_FIB_RULES_H,fib_rules.h)
4242
CFLAGS_tc:=$(call get_hdr_inc,__LINUX_PKT_SCHED_H,pkt_sched.h) \
4343
$(call get_hdr_inc,__LINUX_PKT_CLS_H,pkt_cls.h) \
44-
$(call get_hdr_inc,_TC_CT_H,tc_act/tc_ct.h)
44+
$(call get_hdr_inc,_TC_CT_H,tc_act/tc_ct.h) \
45+
$(call get_hdr_inc,_TC_MIRRED_H,tc_act/tc_mirred.h) \
46+
$(call get_hdr_inc,_TC_SKBEDIT_H,tc_act/tc_skbedit.h)
4547
CFLAGS_tcp_metrics:=$(call get_hdr_inc,_LINUX_TCP_METRICS_H,tcp_metrics.h)

include/linux/tc_act/tc_mirred.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2+
#ifndef __LINUX_TC_MIR_H
3+
#define __LINUX_TC_MIR_H
4+
5+
#include <linux/types.h>
6+
#include <linux/pkt_cls.h>
7+
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+
tc_gen;
15+
int eaction; /* one of IN/EGRESS_MIRROR/REDIR */
16+
__u32 ifindex; /* ifindex of egress port */
17+
};
18+
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
26+
};
27+
#define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1)
28+
29+
#endif

include/linux/tc_act/tc_skbedit.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2+
/*
3+
* Copyright (c) 2008, Intel Corporation.
4+
*
5+
* Author: Alexander Duyck <[email protected]>
6+
*/
7+
8+
#ifndef __LINUX_TC_SKBEDIT_H
9+
#define __LINUX_TC_SKBEDIT_H
10+
11+
#include <linux/pkt_cls.h>
12+
13+
#define SKBEDIT_F_PRIORITY 0x1
14+
#define SKBEDIT_F_QUEUE_MAPPING 0x2
15+
#define SKBEDIT_F_MARK 0x4
16+
#define SKBEDIT_F_PTYPE 0x8
17+
#define SKBEDIT_F_MASK 0x10
18+
#define SKBEDIT_F_INHERITDSFIELD 0x20
19+
#define SKBEDIT_F_TXQ_SKBHASH 0x40
20+
21+
struct tc_skbedit {
22+
tc_gen;
23+
};
24+
25+
enum {
26+
TCA_SKBEDIT_UNSPEC,
27+
TCA_SKBEDIT_TM,
28+
TCA_SKBEDIT_PARMS,
29+
TCA_SKBEDIT_PRIORITY,
30+
TCA_SKBEDIT_QUEUE_MAPPING,
31+
TCA_SKBEDIT_MARK,
32+
TCA_SKBEDIT_PAD,
33+
TCA_SKBEDIT_PTYPE,
34+
TCA_SKBEDIT_MASK,
35+
TCA_SKBEDIT_FLAGS,
36+
TCA_SKBEDIT_QUEUE_MAPPING_MAX,
37+
__TCA_SKBEDIT_MAX
38+
};
39+
#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)
40+
41+
#endif

0 commit comments

Comments
 (0)