selftests: Add tests for mirroring to gretap
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | selftests: forwarding: Add libs for gretap mirror testingtools/ tools/ tools/ +1 more | +350 | 0 replies | |
| 2/7 | selftests: forwarding: Add test for mirror to gretaptools/ | +139 | 0 replies | |
| 3/7 | selftests: forwarding: Test gretap mirror with next-hop remotetools/ | +117 | 0 replies | |
| 4/7 | selftests: forwarding: Test mirror to gretap w/ bound devtools/ | +213 | 0 replies | |
| 5/7 | selftests: forwarding: Test flower mirror to gretaptools/ | +116 | 0 replies | |
| 6/7 | selftests: forwarding: Test neighbor updates when mirroring to gretaptools/ | +101 | 0 replies | |
| 7/7 | selftests: forwarding: Test changes in mirror-to-gretaptools/ | +194 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Pirko |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/7] selftests: Add tests for mirroring to gretap
This suite tests GRE-encapsulated mirroring. The general topology that most of the tests use is as follows, but each test defines details of the topology based on its needs, and some tests actually use a somewhat different topology.
+---------------------+ +---------------------+
| H1 | | H2 |
| + $h1 | | $h2 + |
+-----|---------------+ +---------------|-----+
| |
+-----|------------------------------------------------------|-----+
| SW o---> mirror | |
| +---|------------------------------------------------------|---+ |
| | + $swp1 BR $swp2 + | |
| +--------------------------------------------------------------+ |
| |
| + $swp3 + gt6 (ip6gretap) + gt4 (gretap) |
+-----|----------------:--------------------:----------------------+
| : :
+-----|----------------:--------------------:----------------------+
| + $h3 + h3-gt6(ip6gretap) + h3-gt4 (gretap) |
| H3 |
+------------------------------------------------------------------+The following axes of configuration space are tested:
- ingress and egress mirroring
- mirroring triggered by matchall and flower
- mirroring to ipgretap and ip6gretap
- remote tunnel reachable directly or through a next-hop route
- skip_sw as well as skip_hw configurations
Apart from basic tests with the above mentioned features, the following tests are included:
- handling of changes to neighbors pertinent to routing decisions in mirrored underlay
- handling of configuration changes at the mirrored-to tunnel (endpoint addresses, upness)
A suite of mlxsw-specific tests will be part of a separate submission through linux-mlxsw patch queue.
Petr Machata (7):
selftests: forwarding: Add libs for gretap mirror testing
selftests: forwarding: Add test for mirror to gretap
selftests: forwarding: Test gretap mirror with next-hop remote
selftests: forwarding: Test mirror to gretap w/ bound dev
selftests: forwarding: Test flower mirror to gretap
selftests: forwarding: Test neighbor updates when mirroring to gretap
selftests: forwarding: Test changes in mirror-to-gretap
tools/testing/selftests/net/forwarding/lib.sh | 96 ++++++++++ .../testing/selftests/net/forwarding/mirror_gre.sh | 139 ++++++++++++++ .../selftests/net/forwarding/mirror_gre_bound.sh | 213 +++++++++++++++++++++ .../selftests/net/forwarding/mirror_gre_changes.sh | 194 +++++++++++++++++++ .../selftests/net/forwarding/mirror_gre_flower.sh | 116 +++++++++++ .../selftests/net/forwarding/mirror_gre_lib.sh | 85 ++++++++ .../selftests/net/forwarding/mirror_gre_neigh.sh | 101 ++++++++++ .../selftests/net/forwarding/mirror_gre_nh.sh | 117 +++++++++++ .../net/forwarding/mirror_gre_topo_lib.sh | 129 +++++++++++++ .../testing/selftests/net/forwarding/mirror_lib.sh | 40 ++++ 10 files changed, 1230 insertions(+) create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre.sh create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_bound.sh create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_changes.sh create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_flower.sh create mode 100644 tools/testing/selftests/net/forwarding/mirror_gre_lib.sh create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_neigh.sh create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_nh.sh create mode 100644 tools/testing/selftests/net/forwarding/mirror_gre_topo_lib.sh create mode 100644 tools/testing/selftests/net/forwarding/mirror_lib.sh
Signature · 1 line
2.4.11