[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191120130519.17702-2-petrm@mellanox.com>
Date: Wed, 20 Nov 2019 13:05:21 +0000
From: Petr Machata <petrm@...lanox.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: Petr Machata <petrm@...lanox.com>,
Ido Schimmel <idosch@...lanox.com>,
Roopa Prabhu <roopa@...ulusnetworks.com>
Subject: [RFC PATCH 2/3] uapi: Update for the ETS Qdisc
Update uAPI headers with the defines for the new ETS Qdisc.
Signed-off-by: Petr Machata <petrm@...lanox.com>
---
include/uapi/linux/pkt_sched.h | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h
index 5011259b..c570dfe8 100644
--- a/include/uapi/linux/pkt_sched.h
+++ b/include/uapi/linux/pkt_sched.h
@@ -1181,4 +1181,33 @@ enum {
#define TCA_TAPRIO_ATTR_MAX (__TCA_TAPRIO_ATTR_MAX - 1)
+/* ETS */
+
+#define ETS_MAX_BANDS 16
+
+enum {
+ TCA_ETS_UNSPEC,
+ TCA_ETS_BANDS, /* u8 */
+ TCA_ETS_STRICT, /* u8 */
+ TCA_ETS_QUANTA, /* nested TCA_ETS_BAND_QUANTUM */
+ TCA_ETS_PRIOMAP, /* nested TCA_ETS_PMAP_BAND */
+ __TCA_ETS_MAX,
+};
+
+#define TCA_ETS_MAX (__TCA_ETS_MAX - 1)
+
+enum {
+ TCA_ETS_BAND_UNSPEC,
+ TCA_ETS_BAND_QUANTUM, /* u32 */
+ __TCA_ETS_BAND_MAX,
+};
+#define TCA_ETS_BAND_MAX (__TCA_ETS_BAND_MAX - 1)
+
+enum {
+ TCA_ETS_PMAP_UNSPEC,
+ TCA_ETS_PMAP_BAND, /* u8 */
+ __TCA_ETS_PMAP_MAX,
+};
+#define TCA_ETS_PMAP_MAX (__TCA_ETS_PMAP_MAX - 1)
+
#endif
--
2.20.1
Powered by blists - more mailing lists