[openwrt/openwrt] iproute2: add cake_mq support

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 10 17:07:59 PST 2026


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f9320e8d2d3974f992b803437f7a750b000000f0

commit f9320e8d2d3974f992b803437f7a750b000000f0
Author: Rui Salvaterra <rsalvaterra at gmail.com>
AuthorDate: Tue Feb 10 11:28:56 2026 +0000

    iproute2: add cake_mq support
    
    Add two patches backported from iproute2-next.
    
    Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21964
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 .../patches/001-0-Update-kernel-headers.patch      | 23 ++++++++++++
 .../001-1-tc-cake-add-cake_mq-support.patch        | 43 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/package/network/utils/iproute2/patches/001-0-Update-kernel-headers.patch b/package/network/utils/iproute2/patches/001-0-Update-kernel-headers.patch
new file mode 100644
index 0000000000..17e6613664
--- /dev/null
+++ b/package/network/utils/iproute2/patches/001-0-Update-kernel-headers.patch
@@ -0,0 +1,23 @@
+From a3ec2778576b1841b7fb71afa178cd2d2df8c893 Mon Sep 17 00:00:00 2001
+From: David Ahern <dsahern at kernel.org>
+Date: Thu, 15 Jan 2026 09:23:04 -0700
+Subject: [PATCH] Update kernel headers
+
+Update kernel headers to commit:
+	d4596891e72c: ("net: inline napi_skb_cache_get()")
+
+Signed-off-by: David Ahern <dsahern at kernel.org>
+---
+ include/uapi/linux/pkt_sched.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/include/uapi/linux/pkt_sched.h
++++ b/include/uapi/linux/pkt_sched.h
+@@ -1036,6 +1036,7 @@ enum {
+ 	TCA_CAKE_STATS_DROP_NEXT_US,
+ 	TCA_CAKE_STATS_P_DROP,
+ 	TCA_CAKE_STATS_BLUE_TIMER_US,
++	TCA_CAKE_STATS_ACTIVE_QUEUES,
+ 	__TCA_CAKE_STATS_MAX
+ };
+ #define TCA_CAKE_STATS_MAX (__TCA_CAKE_STATS_MAX - 1)
diff --git a/package/network/utils/iproute2/patches/001-1-tc-cake-add-cake_mq-support.patch b/package/network/utils/iproute2/patches/001-1-tc-cake-add-cake_mq-support.patch
new file mode 100644
index 0000000000..97e2cc9197
--- /dev/null
+++ b/package/network/utils/iproute2/patches/001-1-tc-cake-add-cake_mq-support.patch
@@ -0,0 +1,43 @@
+From 24236c0eb5ddd710d1b28e63c6a7a685ef5660a3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jonas=20K=C3=B6ppeler?= <j.koeppeler at tu-berlin.de>
+Date: Mon, 5 Jan 2026 17:29:02 +0100
+Subject: [PATCH] tc: cake: add cake_mq support
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This adds support for the cake_mq variant of sch_cake to tc.
+
+Signed-off-by: Jonas Köppeler <j.koeppeler at tu-berlin.de>
+Signed-off-by: Toke Høiland-Jørgensen <toke at redhat.com>
+Signed-off-by: David Ahern <dsahern at kernel.org>
+---
+ tc/q_cake.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+--- a/tc/q_cake.c
++++ b/tc/q_cake.c
+@@ -667,6 +667,11 @@ static int cake_print_xstats(const struc
+ 			   " /%8u\n", GET_STAT_U32(MAX_ADJLEN));
+ 	}
+ 
++	if (st[TCA_CAKE_STATS_ACTIVE_QUEUES])
++		print_uint(PRINT_ANY, "active_queues",
++			   " active queues: %25u\n",
++			   GET_STAT_U32(ACTIVE_QUEUES));
++
+ 	if (st[TCA_CAKE_STATS_AVG_NETOFF])
+ 		print_uint(PRINT_ANY, "avg_hdr_offset",
+ 			   " average network hdr offset: %12u\n\n",
+@@ -826,4 +831,11 @@ struct qdisc_util cake_qdisc_util = {
+ 	.parse_qopt	= cake_parse_opt,
+ 	.print_qopt	= cake_print_opt,
+ 	.print_xstats	= cake_print_xstats,
++};
++
++struct qdisc_util cake_mq_qdisc_util = {
++	.id		= "cake_mq",
++	.parse_qopt	= cake_parse_opt,
++	.print_qopt	= cake_print_opt,
++	.print_xstats	= cake_print_xstats,
+ };




More information about the lede-commits mailing list