diff options
| author | Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com> | 2026-08-07 19:09:40 -0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-11 18:24:55 -0700 |
| commit | 03df0d155ba11ec37e0b48bb93fede143ffef556 (patch) | |
| tree | 692f2b7077beedfb494c189d36dac243811dacc9 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 39dd045c15143b9a40473e4b79263b3f94d5f3a0 (diff) | |
selftests: net: create own netns in ipv6_flowlabel_mgr
Have ipv6_flowlabel_mgr create and configure its own network
namespace (unshare(CLONE_NEWNET) + bring up lo), the same way
ipv6_fragmentation.c and icmp_rfc4884.c already do, instead of
relying on the in_netns.sh wrapper script.
The setup can then be reused across tests through fixtures and
provide isolated network environments for each test in the case
of a future adoption of kselftest_harness.
It also avoids the leak of modifications to the netns in case the
user runs the test file directly, outside the wrapper and without
the in_netns.sh file.
Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com>
Link: https://patch.msgid.link/20260807220942.421382-4-marcelomspessoto@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
