]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: test_xdp_veth: Use unique names
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Jan 2025 07:21:48 +0000 (08:21 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 3 Feb 2025 11:33:52 +0000 (03:33 -0800)
commit29c7bb7d0fa7c4bb30b93c9ea56de80c779fcc47
tree8dc88b6cd7c4e3d692898026d1066eec20d7086a
parent450effe2daffb679889f3d57a1309f1efc69202b
selftests/bpf: test_xdp_veth: Use unique names

The network namespaces and the veth used by the tests have hardcoded
names that can conflict with other tests during parallel runs.

Use the append_tid() helper to ensure the uniqueness of these names.
Use the static network configuration table as a template on which
thread IDs are appended in each test.
Set a fixed size to remote_addr field so the struct veth_configuration
can also have a fixed size.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250131-redirect-multi-v4-9-970b33678512@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c