Skip to content

selftests: forwarding: Tests redirects between L3 and L2 devices

Guillaume Nault linux-kselftest netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4selftests: forwarding: Test redirecting gre or ipip packets to Ethernettools/testing/selftests/net/forwarding/Makefile tools/testing/selftests/net/forwarding/config tools/testing/selftests/net/forwarding/tc_redirect_l2l3.sh +1 more+557 -09 replies
2/4selftests: forwarding: Test redirecting sit packets to Ethernettools/testing/selftests/net/forwarding/config tools/testing/selftests/net/forwarding/tc_redirect_l2l3.sh+61 -00 replies
3/4selftests: forwarding: Test redirecting ip6gre and ip6tnl packets to Ethernettools/testing/selftests/net/forwarding/config tools/testing/selftests/net/forwarding/tc_redirect_l2l3.sh+38 -00 replies
4/4selftests: forwarding: Test redirecting vxlan and bareudp packets to Ethernettools/testing/selftests/net/forwarding/config tools/testing/selftests/net/forwarding/tc_redirect_l2l3.sh+57 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] selftests: forwarding: Tests redirects between L3 and L2 devices

Following merge commit 8eb517a2a4ae ("Merge branch 'reset-mac'"), which made several L3 tunnels reset the skb's mac header pointer after decap, here's a selftest that validates this new behaviour.

Patch 1 adds a reusable script for setting up the base network and tests ipip and gre tunnels. The following patches extend the selftest to cover more tunnel types (sit, ip6gre, ip6tnl, vxlan-gpe and bareudp).

Guillaume Nault (4):
selftests: forwarding: Test redirecting gre or ipip packets to
Ethernet
selftests: forwarding: Test redirecting sit packets to Ethernet
selftests: forwarding: Test redirecting ip6gre and ip6tnl packets to
Ethernet
selftests: forwarding: Test redirecting vxlan and bareudp packets to
Ethernet

 .../testing/selftests/net/forwarding/Makefile |   1 +
 tools/testing/selftests/net/forwarding/config |   7 +
 .../net/forwarding/tc_redirect_l2l3.sh        | 438 ++++++++++++++++++
 .../net/forwarding/topo_nschain_lib.sh        | 267 +++++++++++
 4 files changed, 713 insertions(+)
 create mode 100755 tools/testing/selftests/net/forwarding/tc_redirect_l2l3.sh
 create mode 100644 tools/testing/selftests/net/forwarding/topo_nschain_lib.sh
Signature · 1 line
2.21.3