selftests: mlxsw: RED: Test RED ECN nodrop offload
authorPetr Machata <petrm@mellanox.com>
Thu, 12 Mar 2020 23:11:00 +0000 (01:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:03:46 +0000 (21:03 -0700)
commit63f3c1d06f2597de5d68715a53f00900233ed0bd
tree13c5f71b2cc4c4fdc25e47f538a91197ae3a5954
parent058e56ac9ee63687f1633b2ed669edf4633815e7
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>
tools/testing/selftests/drivers/net/mlxsw/sch_red_core.sh
tools/testing/selftests/drivers/net/mlxsw/sch_red_ets.sh
tools/testing/selftests/drivers/net/mlxsw/sch_red_root.sh