Skip to contentSkip to conversation

tc: export tc_defact.h to userspace

PATCH Applied Stephen Hemminger 2 participants 2 messages Oct 1, 2013 – Oct 2, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tc: export tc_defact.h to userspace

Jamal sent patch to add tc user simple actions to iproute2 but required header was not being exported.

---
 include/linux/tc_act/tc_defact.h      |   19 -------------------
 include/uapi/linux/tc_act/Kbuild      |    1 +
 include/uapi/linux/tc_act/tc_defact.h |   19 +++++++++++++++++++
 3 files changed, 20 insertions(+), 19 deletions(-)
 delete mode 100644 include/linux/tc_act/tc_defact.h
 create mode 100644 include/uapi/linux/tc_act/tc_defact.h
include/linux/tc_act/tc_defact.h deleted +0 -19
deleted file mode 100644
index 6f65d07..0000000
@@ -1,19 +0,0 @@
-#ifndef __LINUX_TC_DEF_H
-#define __LINUX_TC_DEF_H
-
-#include <linux/pkt_cls.h>
-
-struct tc_defact {
-	tc_gen;
-};
-                                                                                
-enum {
-	TCA_DEF_UNSPEC,
-	TCA_DEF_TM,
-	TCA_DEF_PARMS,
-	TCA_DEF_DATA,
-	__TCA_DEF_MAX
-};
-#define TCA_DEF_MAX (__TCA_DEF_MAX - 1)
-
-#endif
include/uapi/linux/tc_act/Kbuild +1 -0
index 0623ec4..56f1216 100644
@@ -1,5 +1,6 @@
 # UAPI Header export list
 header-y += tc_csum.h
+header-y += tc_defact.h
 header-y += tc_gact.h
 header-y += tc_ipt.h
 header-y += tc_mirred.h
include/uapi/linux/tc_act/tc_defact.h new file +19 -0
new file mode 100644
index 0000000..6f65d07
@@ -0,0 +1,19 @@
+#ifndef __LINUX_TC_DEF_H
+#define __LINUX_TC_DEF_H
+
+#include <linux/pkt_cls.h>
+
+struct tc_defact {
+	tc_gen;
+};
+                                                                                
+enum {
+	TCA_DEF_UNSPEC,
+	TCA_DEF_TM,
+	TCA_DEF_PARMS,
+	TCA_DEF_DATA,
+	__TCA_DEF_MAX
+};
+#define TCA_DEF_MAX (__TCA_DEF_MAX - 1)
+
+#endif
Signature · 1 line
1.7.10.4