[PATCH iproute2-next] tc: qdisc: provide tcm_handle and tcm_parent to kernel dump requests
From: Eric Dumazet <edumazet@google.com>
Date: 2026-05-03 11:51:45
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Eric Dumazet <edumazet@google.com>
Date: 2026-05-03 11:51:45
Subsystem:
the rest · Maintainer:
Linus Torvalds
linux-7.2 can filter "tc qdisc show ..." on tcm_handle / tcm_parent and reduce dump costs. Old kernels ignore these values. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Jamal Hadi Salim <jhs@mojatatu.com> --- tc/tc_qdisc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/tc/tc_qdisc.c b/tc/tc_qdisc.c
index b3c395b65c2f6b47abbcb6aa37b7dc1f080032e8..7c3e7cb36b4830bca9f2785a58b38d319ec4b563 100644
--- a/tc/tc_qdisc.c
+++ b/tc/tc_qdisc.c@@ -408,6 +408,9 @@ static int tc_qdisc_list(int argc, char **argv) argc--; argv++; } + /* Recent kernels (7.2+) can filter on tcm_parent/tcm_handle */ + req.t.tcm_parent = filter_parent; + req.t.tcm_handle = filter_handle; if (d[0]) { req.t.tcm_ifindex = ll_name_to_index(d);
--
2.54.0.545.g6539524ca2-goog