]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add a test for VXLAN asymmetric routing
authorIdo Schimmel <idosch@mellanox.com>
Mon, 21 Jan 2019 13:22:52 +0000 (13:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 04:40:35 +0000 (20:40 -0800)
commit8ab4ae33566822d1c3e217a7e1f238783719a435
treed1b0e371a819d0914d0978849e93d05b6c3428b4
parent3cc4a43ecd095b7c4828b906cf14019e3a60f254
selftests: forwarding: Add a test for VXLAN asymmetric routing

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.

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: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/vxlan_asymmetric.sh [new file with mode: 0755]