public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2-next] tc: qdisc: provide tcm_handle and tcm_parent to kernel dump requests
@ 2026-05-03 11:51 Eric Dumazet
  2026-05-04 19:10 ` Jamal Hadi Salim
  2026-05-05  1:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2026-05-03 11:51 UTC (permalink / raw)
  To: David Ahern, Stephen Hemminger
  Cc: David S . Miller, Jakub Kicinski, Paolo Abeni, netdev,
	eric.dumazet, Eric Dumazet, Jamal Hadi Salim

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-05  1:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03 11:51 [PATCH iproute2-next] tc: qdisc: provide tcm_handle and tcm_parent to kernel dump requests Eric Dumazet
2026-05-04 19:10 ` Jamal Hadi Salim
2026-05-05  1:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox