mbox series

[net,0/3] selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns.

Message ID cover.1673191942.git.gnault@redhat.com (mailing list archive)
Headers show
Series selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns. | expand

Message

Guillaume Nault Jan. 8, 2023, 3:45 p.m. UTC
l2_tos_ttl_inherit.sh uses a veth pair to run its tests, but only one
of the veth interfaces runs in a dedicated netns. The other one remains
in the initial namespace where the existing network configuration can
interfere with the setup used for the tests.

Isolate both veth devices in their own netns and ensure everything gets
cleaned up when the script exits.

Link: https://lore.kernel.org/netdev/924f1062-ab59-9b88-3b43-c44e73a30387@alu.unizg.hr/

Guillaume Nault (3):
  selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad".
  selftests/net: l2_tos_ttl_inherit.sh: Run tests in their own netns.
  selftests/net: l2_tos_ttl_inherit.sh: Ensure environment cleanup on
    failure.

 .../selftests/net/l2_tos_ttl_inherit.sh       | 202 +++++++++++-------
 1 file changed, 129 insertions(+), 73 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 10, 2023, 9:30 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Sun, 8 Jan 2023 16:45:31 +0100 you wrote:
> l2_tos_ttl_inherit.sh uses a veth pair to run its tests, but only one
> of the veth interfaces runs in a dedicated netns. The other one remains
> in the initial namespace where the existing network configuration can
> interfere with the setup used for the tests.
> 
> Isolate both veth devices in their own netns and ensure everything gets
> cleaned up when the script exits.
> 
> [...]

Here is the summary with links:
  - [net,1/3] selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad".
    https://git.kernel.org/netdev/net/c/e59370b2e96e
  - [net,2/3] selftests/net: l2_tos_ttl_inherit.sh: Run tests in their own netns.
    https://git.kernel.org/netdev/net/c/c53cb00f7983
  - [net,3/3] selftests/net: l2_tos_ttl_inherit.sh: Ensure environment cleanup on failure.
    https://git.kernel.org/netdev/net/c/d68ff8ad3351

You are awesome, thank you!