OSDN Git Service

selftests: net: improved IOAM tests
authorJustin Iurman <justin.iurman@uliege.be>
Mon, 16 Aug 2021 17:16:38 +0000 (19:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2021 09:50:33 +0000 (10:50 +0100)
commit752be2976405b7499890c0b6bac6d30d34d08bd6
tree04bb5f5f8905ae3b733189d482235017c68c3f07
parent4aefc7973cfc0dace91a9a95f4f554ecd0364caf
selftests: net: improved IOAM tests

As previously discussed with David Ahern, here is a refactored and improved
version of the IOAM self-test. It is now more complete and more robust. Now,
all tests are divided into three categories: OUTPUT (evaluates the IOAM
processing by the sender), INPUT (evaluates the IOAM processing by the receiver)
and GLOBAL (evaluates wider use cases that do not fall into the other two
categories). Both OUTPUT and INPUT tests only use a two-node topology (alpha and
beta), while GLOBAL tests use the entire three-node topology (alpha, beta,
gamma). Each test is documented inside its own handler in the (bash) script.

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/ioam6.sh [changed mode: 0644->0755]
tools/testing/selftests/net/ioam6_parser.c