Skip to content

selftests: forwarding: Add ip6gre tests

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8testing: selftests: forwarding.config.sample: Add tc flagtools/testing/selftests/net/forwarding/forwarding.config.sample+3 -00 repliesApplied
2/8testing: selftests: tc_common: Add tc_check_at_least_x_packets()tools/testing/selftests/net/forwarding/tc_common.sh+10 -00 repliesApplied
3/8selftests: forwarding: Add IPv6 GRE flat teststools/testing/selftests/net/forwarding/ip6gre_flat.sh tools/testing/selftests/net/forwarding/ip6gre_flat_key.sh tools/testing/selftests/net/forwarding/ip6gre_flat_keys.sh +1 more+465 -00 repliesApplied
4/8selftests: forwarding: Add IPv6 GRE hierarchical teststools/testing/selftests/net/forwarding/ip6gre_hier.sh tools/testing/selftests/net/forwarding/ip6gre_hier_key.sh tools/testing/selftests/net/forwarding/ip6gre_hier_keys.sh +1 more+364 -10 repliesApplied
5/8selftests: mlxsw: devlink_trap_tunnel_ipip6: Add test case for IPv6 decap_errortools/testing/selftests/drivers/net/mlxsw/spectrum-2/devlink_trap_tunnel_ipip6.sh+250 -00 repliesApplied
6/8selftests: mlxsw: devlink_trap_tunnel_ipip: Align topology drawing correctlytools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_ipip.sh+3 -30 repliesApplied
7/8selftests: mlxsw: devlink_trap_tunnel_ipip: Remove code duplicationtools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_ipip.sh+11 -270 repliesApplied
8/8selftests: mlxsw: devlink_trap_tunnel_ipip: Send a full-length keytools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_ipip.sh+4 -20 repliesApplied

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchPetr Machata
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/8] selftests: forwarding: Add ip6gre tests

From: Ido Schimmel <[email protected]>

This patchset adds forwarding selftests for ip6gre. The tests can be run with veth pairs or with physical loopbacks.

Patch #1 adds a new config option to determine if 'skip_sw' / 'skip_hw' flags are used when installing tc filters. By default, it is not set which means the flags are not used. 'skip_sw' is useful to ensure traffic is forwarded by the hardware data path.

Patch #2 adds a new helper function.

Patches #3-#4 add the forwarding selftests.

Patch #5 adds a mlxsw-specific selftest to validate correct behavior of the 'decap_error' trap with IPv6 underlay.

Patches #6-#8 align the corresponding IPv4 underlay test to the IPv6 one.

Amit Cohen (8):
testing: selftests: forwarding.config.sample: Add tc flag
testing: selftests: tc_common: Add tc_check_at_least_x_packets()
selftests: forwarding: Add IPv6 GRE flat tests
selftests: forwarding: Add IPv6 GRE hierarchical tests
selftests: mlxsw: devlink_trap_tunnel_ipip6: Add test case for IPv6
decap_error
selftests: mlxsw: devlink_trap_tunnel_ipip: Align topology drawing
correctly
selftests: mlxsw: devlink_trap_tunnel_ipip: Remove code duplication
selftests: mlxsw: devlink_trap_tunnel_ipip: Send a full-length key

 .../net/mlxsw/devlink_trap_tunnel_ipip.sh     |  50 +-
 .../spectrum-2/devlink_trap_tunnel_ipip6.sh   | 250 ++++++++++
 .../net/forwarding/forwarding.config.sample   |   3 +
 .../selftests/net/forwarding/ip6gre_flat.sh   |  65 +++
 .../net/forwarding/ip6gre_flat_key.sh         |  65 +++
 .../net/forwarding/ip6gre_flat_keys.sh        |  65 +++
 .../selftests/net/forwarding/ip6gre_hier.sh   |  65 +++
 .../net/forwarding/ip6gre_hier_key.sh         |  65 +++
 .../net/forwarding/ip6gre_hier_keys.sh        |  65 +++
 .../selftests/net/forwarding/ip6gre_lib.sh    | 438 ++++++++++++++++++
 .../selftests/net/forwarding/tc_common.sh     |  10 +
 11 files changed, 1109 insertions(+), 32 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/spectrum-2/devlink_trap_tunnel_ipip6.sh
 create mode 100755 tools/testing/selftests/net/forwarding/ip6gre_flat.sh
 create mode 100755 tools/testing/selftests/net/forwarding/ip6gre_flat_key.sh
 create mode 100755 tools/testing/selftests/net/forwarding/ip6gre_flat_keys.sh
 create mode 100755 tools/testing/selftests/net/forwarding/ip6gre_hier.sh
 create mode 100755 tools/testing/selftests/net/forwarding/ip6gre_hier_key.sh
 create mode 100755 tools/testing/selftests/net/forwarding/ip6gre_hier_keys.sh
 create mode 100644 tools/testing/selftests/net/forwarding/ip6gre_lib.sh
Signature · 1 line
2.31.1