patch-2.4.27 linux-2.4.27/include/linux/pkt_cls.h
Next file: linux-2.4.27/include/linux/pkt_sched.h
Previous file: linux-2.4.27/include/linux/pci_ids.h
Back to the patch index
Back to the overall index
- Lines: 74
- Date:
2004-08-07 16:26:06.326415480 -0700
- Orig file:
linux-2.4.26/include/linux/pkt_cls.h
- Orig date:
2000-01-07 16:57:13.000000000 -0800
diff -urN linux-2.4.26/include/linux/pkt_cls.h linux-2.4.27/include/linux/pkt_cls.h
@@ -24,11 +24,12 @@
TCA_POLICE_RATE,
TCA_POLICE_PEAKRATE,
TCA_POLICE_AVRATE,
- TCA_POLICE_RESULT
+ TCA_POLICE_RESULT,
#define TCA_POLICE_RESULT TCA_POLICE_RESULT
+ __TCA_POLICE_MAX
};
-#define TCA_POLICE_MAX TCA_POLICE_RESULT
+#define TCA_POLICE_MAX (__TCA_POLICE_MAX - 1)
/* U32 filters */
@@ -49,9 +50,10 @@
TCA_U32_DIVISOR,
TCA_U32_SEL,
TCA_U32_POLICE,
+ __TCA_U32_MAX
};
-#define TCA_U32_MAX TCA_U32_POLICE
+#define TCA_U32_MAX (__TCA_U32_MAX - 1)
struct tc_u32_key
{
@@ -97,9 +99,10 @@
TCA_RSVP_SRC,
TCA_RSVP_PINFO,
TCA_RSVP_POLICE,
+ __TCA_RSVP_MAX
};
-#define TCA_RSVP_MAX TCA_RSVP_POLICE
+#define TCA_RSVP_MAX (__TCA_RSVP_MAX - 1)
struct tc_rsvp_gpi
{
@@ -127,9 +130,10 @@
TCA_ROUTE4_FROM,
TCA_ROUTE4_IIF,
TCA_ROUTE4_POLICE,
+ __TCA_ROUTE4_MAX
};
-#define TCA_ROUTE4_MAX TCA_ROUTE4_POLICE
+#define TCA_ROUTE4_MAX (__TCA_ROUTE4_MAX - 1)
/* FW filter */
@@ -139,9 +143,10 @@
TCA_FW_UNSPEC,
TCA_FW_CLASSID,
TCA_FW_POLICE,
+ __TCA_FW_MAX
};
-#define TCA_FW_MAX TCA_FW_POLICE
+#define TCA_FW_MAX (__TCA_FW_MAX - 1)
/* TC index filter */
@@ -154,8 +159,9 @@
TCA_TCINDEX_FALL_THROUGH,
TCA_TCINDEX_CLASSID,
TCA_TCINDEX_POLICE,
+ __TCA_TCINDEX_MAX
};
-#define TCA_TCINDEX_MAX TCA_TCINDEX_POLICE
+#define TCA_TCINDEX_MAX (__TCA_TCINDEX_MAX - 1)
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)