]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit3de611b507628abac081630d8180a9a369c83668
treef5725873ccd329936b366fcd2500c3a31292f05c
parent4113b04823948e40eda1c54dfadadad4bc01dcdb
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