Merge to Fedora Core 2 kernel-2.6.8-1.521
[linux-2.6.git] / include / linux / pkt_cls.h
index 59339ce..9abc5b5 100644 (file)
@@ -117,17 +117,6 @@ enum
 struct tc_police
 {
        __u32                   index;
-#ifdef CONFIG_NET_CLS_ACT
-       int                     refcnt;
-       int                     bindcnt;
-#endif
-/* Turned off because it requires new tc
- * to work (for now maintain ABI)
- *
-#ifdef CONFIG_NET_CLS_ACT
-       __u32                   capab;
-#endif
-*/
        int                     action;
 #define TC_POLICE_UNSPEC       TC_ACT_UNSPEC
 #define TC_POLICE_OK           TC_ACT_OK
@@ -140,6 +129,9 @@ struct tc_police
        __u32                   mtu;
        struct tc_ratespec      rate;
        struct tc_ratespec      peakrate;
+       int                     refcnt;
+       int                     bindcnt;
+       __u32                   capab;
 };
 
 struct tcf_t
@@ -195,12 +187,9 @@ enum
        TCA_U32_DIVISOR,
        TCA_U32_SEL,
        TCA_U32_POLICE,
-#ifdef CONFIG_NET_CLS_ACT
        TCA_U32_ACT,   
-#endif
-#ifdef CONFIG_NET_CLS_IND
        TCA_U32_INDEV,
-#endif
+       TCA_U32_PCNT,
        __TCA_U32_MAX
 };
 
@@ -212,9 +201,6 @@ struct tc_u32_key
        __u32           val;
        int             off;
        int             offmask;
-#ifdef CONFIG_CLS_U32_PERF
-       unsigned long   kcnt;
-#endif
 };
 
 struct tc_u32_sel
@@ -229,13 +215,17 @@ struct tc_u32_sel
 
        short                   hoff;
        __u32                   hmask;
-#ifdef CONFIG_CLS_U32_PERF
-       unsigned long           rcnt;
-       unsigned long           rhit;
-#endif
        struct tc_u32_key       keys[0];
 };
 
+#ifdef CONFIG_CLS_U32_PERF
+struct tc_u32_pcnt
+{
+       __u64 rcnt;
+       __u64 rhit;
+       __u64 kcnts[0];
+};
+#endif
 /* Flags */
 
 #define TC_U32_TERMINAL                1
@@ -300,12 +290,8 @@ enum
        TCA_FW_UNSPEC,
        TCA_FW_CLASSID,
        TCA_FW_POLICE,
-#ifdef CONFIG_NET_CLS_IND
-       TCA_FW_INDEV,
-#endif
-#ifdef CONFIG_NET_CLS_ACT
-       TCA_FW_ACT,
-#endif
+       TCA_FW_INDEV, /*  used by CONFIG_NET_CLS_IND */
+       TCA_FW_ACT, /* used by CONFIG_NET_CLS_ACT */
        __TCA_FW_MAX
 };