]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add libs for gretap mirror testing
authorPetr Machata <petrm@mellanox.com>
Thu, 26 Apr 2018 23:17:56 +0000 (01:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:57:49 +0000 (14:57 -0400)
commit71e4b939d189062604add5eade6d3a1de845073d
treee06b1fc456e60f8ca3b1ef356a70801b1535bd19
parent980f2a37b9c2647cf1711474b9bebbe58628b6cb
selftests: forwarding: Add libs for gretap mirror testing

To simplify implementation of mirror-to-gretap tests, extend lib.sh with
several new functions that might potentially be useful more
broadly (although right now the mirroring tests will be the only
client).

Also add mirror_lib.sh with code useful for mirroring tests,
mirror_gre_lib.sh with code specifically useful for mirror-to-gretap
tests, and mirror_gre_topo.sh that primes a given test with a good
baseline topology that the test can then tweak to its liking.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/mirror_gre_lib.sh [new file with mode: 0644]
tools/testing/selftests/net/forwarding/mirror_gre_topo_lib.sh [new file with mode: 0644]
tools/testing/selftests/net/forwarding/mirror_lib.sh [new file with mode: 0644]