]> git.baikalelectronics.ru Git - kernel.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)
commit7729cf1deef9a4545aa946aa911070cba1d38b3c
treef2f4d4904827b685144e292603547019b09404cf
parenta7ce95a8421227d1aae58a333d129e8216134560
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