]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: mlxsw: Test port shaper
authorPetr Machata <petrm@nvidia.com>
Wed, 27 Oct 2021 15:20:01 +0000 (18:20 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Oct 2021 02:47:50 +0000 (19:47 -0700)
commit2b11e24ebaef77e7151ddcc1762429798b9f75d5
treef2f4d4904827b685144e292603547019b09404cf
parent3d5290ea1daeee5da2e46abda730351c2e5b1faa
selftests: mlxsw: Test port shaper

TBF can be used as a root qdisc, in which case it is supposed to configure
port shaper. Add a test that verifies that this is so by installing a root
TBF with a ETS or PRIO below it, and then expecting individual bands to all
be shaped according to the root TBF configuration.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/sch_tbf_etsprio.sh