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)
commit7d4cbae04f835525295c501770155c755228eb55
treee06b1fc456e60f8ca3b1ef356a70801b1535bd19
parent6a26ef9bf4821633c02ee4cb8d1957072eb22c9b
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]