selftests: add test script for bareudp tunnels
authorGuillaume Nault <gnault@redhat.com>
Fri, 30 Oct 2020 20:10:54 +0000 (21:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 Nov 2020 23:23:27 +0000 (15:23 -0800)
commitbbbc7aa45eefd4ef7ffbd5ee3bb49bd8b68a2213
treed3a4abd4f70596e9f1578b764ad4798905458195
parent6f8ef834bd0ab28dce7cebb2a7d326d4ed8c9051
selftests: add test script for bareudp tunnels

Test different encapsulation modes of the bareudp module:
  * Unicast MPLS,
  * IPv4 only,
  * IPv4 in multiproto mode (that is, IPv4 and IPv6),
  * IPv6.

Each mode is tested with both an IPv4 and an IPv6 underlay.

v2:
  * Add build dependencies in config file (Willem de Bruijn).
  * The MPLS test now uses its own IP addresses. This minimises
    the amount of cleanup between tests and simplifies the script.
  * Verify that iproute2 supports bareudp tunnels before running the
    script (and other minor usability improvements).

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Link: https://lore.kernel.org/r/8abc0e58f8a7eeb404f82466505a73110bc43ab8.1604088587.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/bareudp.sh [new file with mode: 0755]
tools/testing/selftests/net/config