summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/forwarding/ip6gre_flat.sh
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2024-10-25 16:26:29 +0200
committerJakub Kicinski <kuba@kernel.org>2024-10-30 18:24:40 -0700
commitd7bd61fa0222db1cdc01d66bec2477c9fdfa6d4f (patch)
treef949df26c76c2a14548921ed891374f220bdc594 /tools/testing/selftests/net/forwarding/ip6gre_flat.sh
parent12ae97c531fcd3bfd774d4dfeaeac23eafe24280 (diff)
selftests: forwarding: Add IPv6 GRE remote change tests
Test that after changing the remote address of an ip6gre net device traffic is forwarded as expected. Test with both flat and hierarchical topologies and with and without an input / output keys. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Link: https://patch.msgid.link/02b05246d2cdada0cf2fccffc0faa8a424d0f51b.1729866134.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/ip6gre_flat.sh')
-rwxr-xr-xtools/testing/selftests/net/forwarding/ip6gre_flat.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/ip6gre_flat.sh b/tools/testing/selftests/net/forwarding/ip6gre_flat.sh
index 96c97064f2d3..becc7c3fc809 100755
--- a/tools/testing/selftests/net/forwarding/ip6gre_flat.sh
+++ b/tools/testing/selftests/net/forwarding/ip6gre_flat.sh
@@ -8,6 +8,7 @@
ALL_TESTS="
gre_flat
gre_mtu_change
+ gre_flat_remote_change
"
NUM_NETIFS=6
@@ -44,6 +45,19 @@ gre_mtu_change()
test_mtu_change
}
+gre_flat_remote_change()
+{
+ flat_remote_change
+
+ test_traffic_ip4ip6 "GRE flat IPv4-in-IPv6 (new remote)"
+ test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 (new remote)"
+
+ flat_remote_restore
+
+ test_traffic_ip4ip6 "GRE flat IPv4-in-IPv6 (old remote)"
+ test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 (old remote)"
+}
+
cleanup()
{
pre_cleanup