]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: Import tc_ctinfo uapi
authorDavid Ahern <dsahern@gmail.com>
Mon, 10 Jun 2019 17:23:32 +0000 (10:23 -0700)
committerDavid Ahern <dsahern@gmail.com>
Mon, 10 Jun 2019 17:23:32 +0000 (10:23 -0700)
Add tc_ctinfo.h uapi file from kernel.

Signed-off-by: David Ahern <dsahern@gmail.com>
include/uapi/linux/tc_act/tc_ctinfo.h [new file with mode: 0644]

diff --git a/include/uapi/linux/tc_act/tc_ctinfo.h b/include/uapi/linux/tc_act/tc_ctinfo.h
new file mode 100644 (file)
index 0000000..da803e0
--- /dev/null
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef __UAPI_TC_CTINFO_H
+#define __UAPI_TC_CTINFO_H
+
+#include <linux/types.h>
+#include <linux/pkt_cls.h>
+
+struct tc_ctinfo {
+       tc_gen;
+};
+
+enum {
+       TCA_CTINFO_UNSPEC,
+       TCA_CTINFO_PAD,
+       TCA_CTINFO_TM,
+       TCA_CTINFO_ACT,
+       TCA_CTINFO_ZONE,
+       TCA_CTINFO_PARMS_DSCP_MASK,
+       TCA_CTINFO_PARMS_DSCP_STATEMASK,
+       TCA_CTINFO_PARMS_CPMARK_MASK,
+       TCA_CTINFO_STATS_DSCP_SET,
+       TCA_CTINFO_STATS_DSCP_ERROR,
+       TCA_CTINFO_STATS_CPMARK_SET,
+       __TCA_CTINFO_MAX
+};
+
+#define TCA_CTINFO_MAX (__TCA_CTINFO_MAX - 1)
+
+enum {
+       CTINFO_MODE_DSCP        = BIT(0),
+       CTINFO_MODE_CPMARK      = BIT(1)
+};
+
+#endif