]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: forwarding: Add a RED test for SW datapath
authorPetr Machata <petrm@mellanox.com>
Fri, 26 Jun 2020 22:45:29 +0000 (01:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:08:28 +0000 (17:08 -0700)
commit6cf0291f95172db68d8a283854389a1966e43c65
treecdba154de65b4b5b6ae0b28a2dfcad8fd43fee43
parentaee9caa03fc3c8b02f8f31824354d85f30e562e0
selftests: forwarding: Add a RED test for SW datapath

This test is inspired by the mlxsw RED selftest. It is much simpler to set
up (also because there is no point in testing PRIO / RED encapsulation). It
tests bare RED, ECN and ECN+nodrop modes of operation. On top of that it
tests RED early_drop and mark qevents.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/sch_red.sh [new file with mode: 0755]