Commit d7bd61fa authored by Ido Schimmel's avatar Ido Schimmel Committed by Jakub Kicinski
Browse files

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: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/02b05246d2cdada0cf2fccffc0faa8a424d0f51b.1729866134.git.petrm@nvidia.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 12ae97c5
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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
+14 −0
Original line number Diff line number Diff line
@@ -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 with key (new remote)"
	test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 with key (new remote)"

	flat_remote_restore

	test_traffic_ip4ip6 "GRE flat IPv4-in-IPv6 with key (old remote)"
	test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 with key (old remote)"
}

cleanup()
{
	pre_cleanup
+14 −0
Original line number Diff line number Diff line
@@ -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
}

gre_flat_remote_change()
{
	flat_remote_change

	test_traffic_ip4ip6 "GRE flat IPv4-in-IPv6 with ikey/okey (new remote)"
	test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 with ikey/okey (new remote)"

	flat_remote_restore

	test_traffic_ip4ip6 "GRE flat IPv4-in-IPv6 with ikey/okey (old remote)"
	test_traffic_ip6ip6 "GRE flat IPv6-in-IPv6 with ikey/okey (old remote)"
}

cleanup()
{
	pre_cleanup
+14 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
ALL_TESTS="
	gre_hier
	gre_mtu_change
	gre_hier_remote_change
"

NUM_NETIFS=6
@@ -44,6 +45,19 @@ gre_mtu_change()
	test_mtu_change gre
}

gre_hier_remote_change()
{
	hier_remote_change

	test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6 (new remote)"
	test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6 (new remote)"

	hier_remote_restore

	test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6 (old remote)"
	test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6 (old remote)"
}

cleanup()
{
	pre_cleanup
+14 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
ALL_TESTS="
	gre_hier
	gre_mtu_change
	gre_hier_remote_change
"

NUM_NETIFS=6
@@ -44,6 +45,19 @@ gre_mtu_change()
	test_mtu_change gre
}

gre_hier_remote_change()
{
	hier_remote_change

	test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6 with key (new remote)"
	test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6 with key (new remote)"

	hier_remote_restore

	test_traffic_ip4ip6 "GRE hierarchical IPv4-in-IPv6 with key (old remote)"
	test_traffic_ip6ip6 "GRE hierarchical IPv6-in-IPv6 with key (old remote)"
}

cleanup()
{
	pre_cleanup
Loading