netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns.
@ 2023-01-08 15:45 Guillaume Nault
  2023-01-08 15:45 ` [PATCH net 1/3] selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad" Guillaume Nault
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Guillaume Nault @ 2023-01-08 15:45 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski, Paolo Abeni, Eric Dumazet
  Cc: netdev, Shuah Khan, Matthias May, linux-kselftest,
	Mirsad Goran Todorovac

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-10  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08 15:45 [PATCH net 0/3] selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns Guillaume Nault
2023-01-08 15:45 ` [PATCH net 1/3] selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad" Guillaume Nault
2023-01-08 15:45 ` [PATCH net 2/3] selftests/net: l2_tos_ttl_inherit.sh: Run tests in their own netns Guillaume Nault
2023-01-08 15:45 ` [PATCH net 3/3] selftests/net: l2_tos_ttl_inherit.sh: Ensure environment cleanup on failure Guillaume Nault
2023-01-10  9:30 ` [PATCH net 0/3] selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).