#1032561 iproute2: "tc filter show" always results in empty response

Package:
iproute2
Source:
iproute2
Description:
networking and traffic control tools
Submitter:
Simon
Date:
2025-03-26 18:42:02 UTC
Severity:
normal
Tags:
#1032561#5
Date:
2023-03-08 21:37:47 UTC
From:
To:
Dear Maintainer,

While testing CAKE traffic shaping, I could not see records or statistics for applied tc filters.
Filters do seem to be present and having an effect, but "tc filter show" always returns no output.

root@debian12:~# tc filter add dev eth2 parent ffff: matchall action mirred egress redirect dev ifb4eth2
root@debian12:~# tc filter
root@debian12:~# tc filter show
root@debian12:~#

Tested on fresh Bookworm install and several other machines running various 6.1 based kernels with same result.

#1032561#10
Date:
2023-03-09 12:38:14 UTC
From:
To:
I have found that more specific arguments does return output:
root@debian12:~# tc filter show
root@debian12:~# tc filter show dev eth2 root
filter parent ffff: protocol all pref 49152 matchall chain 0
filter parent ffff: protocol all pref 49152 matchall chain 0 handle 0x1
  not_in_hw
        action order 1: mirred (Egress Redirect to device ifb4eth2) stolen
        index 2 ref 1 bind 1

However like "tc qdisc show" you would expect "tc filter show" to also
result in all filter rules across interfaces being returned.