]> asedeno.scripts.mit.edu Git - linux.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)
commit1538812e0880e805df3c132e307e9bfd963bf431
treed1b0e371a819d0914d0978849e93d05b6c3428b4
parenta2ff7e49ec5035973776665b5bf491de8f3467ae
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]