mbox series

[net-next,0/8] selftests: forwarding: Add ip6gre tests

Message ID 20211008131241.85038-1-idosch@idosch.org (mailing list archive)
Headers show
Series selftests: forwarding: Add ip6gre tests | expand

Message

Ido Schimmel Oct. 8, 2021, 1:12 p.m. UTC
From: Ido Schimmel <idosch@nvidia.com>

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

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 8, 2021, 3:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri,  8 Oct 2021 16:12:33 +0300 you wrote:
> From: Ido Schimmel <idosch@nvidia.com>
> 
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,1/8] testing: selftests: forwarding.config.sample: Add tc flag
    https://git.kernel.org/netdev/net-next/c/45d45e5323a9
  - [net-next,2/8] testing: selftests: tc_common: Add tc_check_at_least_x_packets()
    https://git.kernel.org/netdev/net-next/c/c08d227290f6
  - [net-next,3/8] selftests: forwarding: Add IPv6 GRE flat tests
    https://git.kernel.org/netdev/net-next/c/7df29960fa65
  - [net-next,4/8] selftests: forwarding: Add IPv6 GRE hierarchical tests
    https://git.kernel.org/netdev/net-next/c/4b3d967b5cb9
  - [net-next,5/8] selftests: mlxsw: devlink_trap_tunnel_ipip6: Add test case for IPv6 decap_error
    https://git.kernel.org/netdev/net-next/c/4bb6cce00a2b
  - [net-next,6/8] selftests: mlxsw: devlink_trap_tunnel_ipip: Align topology drawing correctly
    https://git.kernel.org/netdev/net-next/c/c473f723f97a
  - [net-next,7/8] selftests: mlxsw: devlink_trap_tunnel_ipip: Remove code duplication
    https://git.kernel.org/netdev/net-next/c/8bb0ebd52238
  - [net-next,8/8] selftests: mlxsw: devlink_trap_tunnel_ipip: Send a full-length key
    https://git.kernel.org/netdev/net-next/c/7f63cdde5030

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html