diff options
author | Petr Machata <petrm@mellanox.com> | 2020-03-13 01:11:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-14 21:03:46 -0700 |
commit | 63f3c1d06f2597de5d68715a53f00900233ed0bd (patch) | |
tree | 13c5f71b2cc4c4fdc25e47f538a91197ae3a5954 /tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh | |
parent | selftests: qdiscs: RED: Add nodrop tests (diff) | |
download | wireguard-linux-63f3c1d06f2597de5d68715a53f00900233ed0bd.tar.xz wireguard-linux-63f3c1d06f2597de5d68715a53f00900233ed0bd.zip |
selftests: mlxsw: RED: Test RED ECN nodrop offload
Extend RED testsuite to cover the new nodrop mode of RED-ECN. This test is
really similar to ECN test, diverging only in the last step, where UDP
traffic should go to backlog instead of being dropped. Thus extract a
common helper, ecn_test_common(), make do_ecn_test() into a relatively
simple wrapper, and add another one, do_ecn_nodrop_test().
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh')
-rwxr-xr-x | tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh b/tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh index af83efe9ccf1..1c36c576613b 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh @@ -4,6 +4,7 @@ ALL_TESTS=" ping_ipv4 ecn_test + ecn_nodrop_test red_test mc_backlog_test " @@ -50,6 +51,16 @@ ecn_test() uninstall_qdisc } +ecn_nodrop_test() +{ + install_qdisc ecn nodrop + + do_ecn_nodrop_test 10 $BACKLOG1 + do_ecn_nodrop_test 11 $BACKLOG2 + + uninstall_qdisc +} + red_test() { install_qdisc |