* [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
* Re: [PATCH iproute2-next] tc: qdisc: provide tcm_handle and tcm_parent to kernel dump requests
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
1 sibling, 0 replies; 3+ messages in thread
From: Jamal Hadi Salim @ 2026-05-04 19:10 UTC (permalink / raw)
To: Eric Dumazet
Cc: David Ahern, Stephen Hemminger, David S . Miller, Jakub Kicinski,
Paolo Abeni, netdev, eric.dumazet
On Sun, May 3, 2026 at 7:51 AM Eric Dumazet <edumazet@google.com> wrote:
>
> 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>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
cheers,
jamal
> ---
> 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 [flat|nested] 3+ messages in thread
* Re: [PATCH iproute2-next] tc: qdisc: provide tcm_handle and tcm_parent to kernel dump requests
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
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-05-05 1:00 UTC (permalink / raw)
To: Eric Dumazet
Cc: dsahern, stephen, davem, kuba, pabeni, netdev, eric.dumazet, jhs
Hello:
This patch was applied to iproute2/iproute2-next.git (main)
by David Ahern <dsahern@kernel.org>:
On Sun, 3 May 2026 11:51:37 +0000 you wrote:
> 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>
>
> [...]
Here is the summary with links:
- [iproute2-next] tc: qdisc: provide tcm_handle and tcm_parent to kernel dump requests
https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=0fbce40d480f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [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