Skip to content

selftests/bpf: enfoce SO_REUSEADDR in basic test servers

Alexis Lothoré (eBPF Foundation) bpf linux-kselftest lkml 1 version Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected] change-id 20251104-start-server-soreuseaddr-e442446e2d37

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: systematically add SO_REUSEADDR in start_server_addrtools/testing/selftests/bpf/network_helpers.c+8 -10 repliesApplied
2/2selftests/bpf: use start_server_str rather than start_reuseport_server in tc_tunneltools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c+15 -121 replyApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] selftests/bpf: enfoce SO_REUSEADDR in basic test servers

Hello,
This small series is another follow-up to [1], in which I misunderstood Martin's initial feedback (see [2]). I proposed to make tc-tunnel apply SO_REUSEPORT once server is brought up. This series updates start_server_addr to really apply Martin's proposal after his clarification [3]

[1] https://lore.kernel.org/bpf/[email protected]/
[2] https://lore.kernel.org/bpf/[email protected]/
[3] https://lore.kernel.org/bpf/[email protected]/

---
Alexis Lothoré (eBPF Foundation) (2):
selftests/bpf: systematically add SO_REUSEADDR in start_server_addr selftests/bpf: use start_server_str rather than start_reuseport_server in tc_tunnel

 tools/testing/selftests/bpf/network_helpers.c      |  9 +++++++-
 .../selftests/bpf/prog_tests/test_tc_tunnel.c      | 27 ++++++++++++----------
 2 files changed, 23 insertions(+), 13 deletions(-)

---
base-commit: de0745f7cc98146c70a020bc3a1b73c7f3405282
change-id: 20251104-start-server-soreuseaddr-e442446e2d37

Best regards,

Signature · 3 lines
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com