]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: improve the qdisc show command
authorAnton Danilov <littlesmilingcloud@gmail.com>
Fri, 3 Jul 2020 15:39:22 +0000 (18:39 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 6 Jul 2020 18:00:51 +0000 (11:00 -0700)
commitd80a05b7954505f73434e6fb051c098c80fd4361
tree835c671d419fb53aaeef8fb96f8b45b16d0cf5b4
parent085622b1f56070cf127abb591213fd441f2b499e
tc: improve the qdisc show command

Before can be possible show only all qeueue disciplines on an interface.
There wasn't a way to get the qdisc info by handle or parent, only full
dump of the disciplines with a following grep/sed usage.

Now new and old options work as expected to filter a qdisc by handle or
parent.

Full syntax of the qdisc show command:

tc qdisc { show | list } [ dev STRING ] [ QDISC_ID ] [ invisible ]
  QDISC_ID := { root | ingress | handle QHANDLE | parent CLASSID }

This change doesn't require any changes in the kernel.

Signed-off-by: Anton Danilov <littlesmilingcloud@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
man/man8/tc.8
tc/tc_qdisc.c