Blame SOURCES/0033-Import-tc_act-tc_ct.h-uapi-file.patch

07a51b
From 4c330f41bce887a4a06d6c84c62a3a8c1b0b5160 Mon Sep 17 00:00:00 2001
07a51b
From: Andrea Claudi <aclaudi@redhat.com>
07a51b
Date: Tue, 9 Jun 2020 15:45:55 +0200
07a51b
Subject: [PATCH] Import tc_act/tc_ct.h uapi file
07a51b
07a51b
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1844637
07a51b
Upstream Status: iproute2.git commit f47081befffc5
07a51b
07a51b
commit f47081befffc50a5eef734d0a6654b59047e7808
07a51b
Author: David Ahern <dsahern@gmail.com>
07a51b
Date:   Thu Jul 18 15:40:07 2019 -0700
07a51b
07a51b
    Import tc_act/tc_ct.h uapi file
07a51b
07a51b
    Import include/uapi/linux/tc_act/tc_ct.h header from commit of last
07a51b
    kernel headers sync.
07a51b
07a51b
    Signed-off-by: David Ahern <dsahern@gmail.com>
07a51b
---
07a51b
 include/uapi/linux/tc_act/tc_ct.h | 41 +++++++++++++++++++++++++++++++
07a51b
 1 file changed, 41 insertions(+)
07a51b
 create mode 100644 include/uapi/linux/tc_act/tc_ct.h
07a51b
07a51b
diff --git a/include/uapi/linux/tc_act/tc_ct.h b/include/uapi/linux/tc_act/tc_ct.h
07a51b
new file mode 100644
07a51b
index 0000000000000..5fb1d7ac10272
07a51b
--- /dev/null
07a51b
+++ b/include/uapi/linux/tc_act/tc_ct.h
07a51b
@@ -0,0 +1,41 @@
07a51b
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
07a51b
+#ifndef __UAPI_TC_CT_H
07a51b
+#define __UAPI_TC_CT_H
07a51b
+
07a51b
+#include <linux/types.h>
07a51b
+#include <linux/pkt_cls.h>
07a51b
+
07a51b
+enum {
07a51b
+	TCA_CT_UNSPEC,
07a51b
+	TCA_CT_PARMS,
07a51b
+	TCA_CT_TM,
07a51b
+	TCA_CT_ACTION,		/* u16 */
07a51b
+	TCA_CT_ZONE,		/* u16 */
07a51b
+	TCA_CT_MARK,		/* u32 */
07a51b
+	TCA_CT_MARK_MASK,	/* u32 */
07a51b
+	TCA_CT_LABELS,		/* u128 */
07a51b
+	TCA_CT_LABELS_MASK,	/* u128 */
07a51b
+	TCA_CT_NAT_IPV4_MIN,	/* be32 */
07a51b
+	TCA_CT_NAT_IPV4_MAX,	/* be32 */
07a51b
+	TCA_CT_NAT_IPV6_MIN,	/* struct in6_addr */
07a51b
+	TCA_CT_NAT_IPV6_MAX,	/* struct in6_addr */
07a51b
+	TCA_CT_NAT_PORT_MIN,	/* be16 */
07a51b
+	TCA_CT_NAT_PORT_MAX,	/* be16 */
07a51b
+	TCA_CT_PAD,
07a51b
+	__TCA_CT_MAX
07a51b
+};
07a51b
+
07a51b
+#define TCA_CT_MAX (__TCA_CT_MAX - 1)
07a51b
+
07a51b
+#define TCA_CT_ACT_COMMIT	(1 << 0)
07a51b
+#define TCA_CT_ACT_FORCE	(1 << 1)
07a51b
+#define TCA_CT_ACT_CLEAR	(1 << 2)
07a51b
+#define TCA_CT_ACT_NAT		(1 << 3)
07a51b
+#define TCA_CT_ACT_NAT_SRC	(1 << 4)
07a51b
+#define TCA_CT_ACT_NAT_DST	(1 << 5)
07a51b
+
07a51b
+struct tc_ct {
07a51b
+	tc_gen;
07a51b
+};
07a51b
+
07a51b
+#endif /* __UAPI_TC_CT_H */
07a51b
-- 
07a51b
2.26.2
07a51b