OSDN Git Service

net: sched: act_ctinfo: tidy UAPI definition
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Wed, 19 Jun 2019 17:41:10 +0000 (18:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 21:11:01 +0000 (17:11 -0400)
Remove some enums from the UAPI definition that were only used
internally and are NOT part of the UAPI.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_ctinfo.h
include/uapi/linux/tc_act/tc_ctinfo.h

index d6a6885..f071c1d 100644 (file)
@@ -23,6 +23,11 @@ struct tcf_ctinfo {
        u64 stats_cpmark_set;
 };
 
+enum {
+       CTINFO_MODE_DSCP        = BIT(0),
+       CTINFO_MODE_CPMARK      = BIT(1)
+};
+
 #define to_ctinfo(a) ((struct tcf_ctinfo *)a)
 
 #endif /* __NET_TC_CTINFO_H */
index 3233730..f5f26d9 100644 (file)
@@ -26,9 +26,4 @@ enum {
 
 #define TCA_CTINFO_MAX (__TCA_CTINFO_MAX - 1)
 
-enum {
-       CTINFO_MODE_DSCP        = _BITUL(0),
-       CTINFO_MODE_CPMARK      = _BITUL(1)
-};
-
 #endif