]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add a RED selftest
authorPetr Machata <petrm@mellanox.com>
Thu, 27 Feb 2020 07:50:07 +0000 (08:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:10:14 +0000 (11:10 -0800)
commitbb93c2bfeba543ecde5899d993dc00ed35e0c290
treef5725873ccd329936b366fcd2500c3a31292f05c
parentd03b188d47b9b55ee383d7c7e4a08d0852b7d740
selftests: mlxsw: Add a RED selftest

This tests that below the queue minimum length, there is no dropping /
marking, and above max, everything is dropped / marked.

The test is structured as a core file with topology and test code, and
three wrappers: one for RED used as a root Qdisc, and two for
testing (W)RED under PRIO and ETS.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/sch_red_core.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/mlxsw/sch_red_prio.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/mlxsw/sch_red_root.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/lib.sh