]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add a test for VxLAN asymmetric routing with IPv6
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Dec 2021 14:49:47 +0000 (16:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Dec 2021 01:14:34 +0000 (17:14 -0800)
commitab921fdc3d012fb6085bce339931adb31d31f4ee
treeae5f6564a413522c2ffd3c870191c6afe2b4ff40
parent189d823f8569b3f6e27f9633f3a42d81fda23e79
selftests: forwarding: Add a test for VxLAN asymmetric routing with IPv6

In asymmetric routing the ingress VTEP routes the packet into the
correct VxLAN tunnel, whereas the egress VTEP only bridges the packet to
the correct host. Therefore, packets in different directions use
different VNIs - the target VNI.

Add a test which is similar to the existing IPv4 test to check IPv6.

The test uses a simple topology with two VTEPs and two VNIs and verifies
that ping passes between hosts (local / remote) in the same VLAN (VNI)
and in different VLANs belonging to the same tenant (VRF).

While the test does not check VM mobility, it does configure an anycast
gateway using a macvlan device on both VTEPs.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/vxlan_asymmetric_ipv6.sh [new file with mode: 0755]