mbox series

[net-next,0/6] selftests: mptcp: use net/lib.sh to manage netns

Message ID 20240607-upstream-net-next-20240607-selftests-mptcp-net-lib-v1-0-e36986faac94@kernel.org
Headers show
Series selftests: mptcp: use net/lib.sh to manage netns | expand

Message

Matthieu Baerts (NGI0) June 7, 2024, 4:31 p.m. UTC
The goal of this series is to use helpers from net/lib.sh with MPTCP
selftests.

- Patches 1 to 4 are some clean-ups and preparation in net/lib.sh:

  - Patch 1 simplifies the code handling errexit by ignoring possible
    errors instead of disabling errexit temporary.

  - Patch 2 removes the netns from the list after having cleaned it, not
    to try to clean it twice.

  - Patch 3 removes the 'readonly' attribute for the netns variable, to
    allow using the same name in local variables.

  - Patch 4 removes the local 'ns' var, not to conflict with the global
    one it needs to setup.

- Patch 5 uses helpers from net/lib.sh to create and delete netns in
  MPTCP selftests.

- Patch 6 uses wait_local_port_listen helper from net/net_helper.sh.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Geliang Tang (3):
      selftests: net: lib: remove 'ns' var in setup_ns
      selftests: mptcp: lib: use setup/cleanup_ns helpers
      selftests: mptcp: lib: use wait_local_port_listen helper

Matthieu Baerts (NGI0) (3):
      selftests: net: lib: ignore possible errors
      selftests: net: lib: remove ns from list after clean-up
      selftests: net: lib: do not set ns var as readonly

 tools/testing/selftests/net/lib.sh             | 55 +++++++++++++++-----------
 tools/testing/selftests/net/mptcp/mptcp_lib.sh | 33 +++++-----------
 2 files changed, 42 insertions(+), 46 deletions(-)
---
base-commit: a999973236543f0b8f6daeaa7ecba7488c3a593b
change-id: 20240607-upstream-net-next-20240607-selftests-mptcp-net-lib-365e43e2e1ca

Best regards,

Comments

patchwork-bot+netdevbpf@kernel.org June 12, 2024, 3 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 07 Jun 2024 18:31:01 +0200 you wrote:
> The goal of this series is to use helpers from net/lib.sh with MPTCP
> selftests.
> 
> - Patches 1 to 4 are some clean-ups and preparation in net/lib.sh:
> 
>   - Patch 1 simplifies the code handling errexit by ignoring possible
>     errors instead of disabling errexit temporary.
> 
> [...]

Here is the summary with links:
  - [net-next,1/6] selftests: net: lib: ignore possible errors
    https://git.kernel.org/netdev/net-next/c/7e0620bc6a5e
  - [net-next,2/6] selftests: net: lib: remove ns from list after clean-up
    https://git.kernel.org/netdev/net-next/c/92fe5670271a
  - [net-next,3/6] selftests: net: lib: do not set ns var as readonly
    https://git.kernel.org/netdev/net-next/c/577db6bd5750
  - [net-next,4/6] selftests: net: lib: remove 'ns' var in setup_ns
    https://git.kernel.org/netdev/net-next/c/f8a2d2f874b7
  - [net-next,5/6] selftests: mptcp: lib: use setup/cleanup_ns helpers
    https://git.kernel.org/netdev/net-next/c/f265d3119a29
  - [net-next,6/6] selftests: mptcp: lib: use wait_local_port_listen helper
    https://git.kernel.org/netdev/net-next/c/1af3bc912eac

You are awesome, thank you!