public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [bpf-next v1 0/5] selftests/bpf: networking test cleanups and build fix
@ 2025-11-15 22:55 Hoyeon Lee
  2025-11-15 22:55 ` [bpf-next v1 1/5] selftests/bpf: use sockaddr_storage instead of addr_port in cls_redirect test Hoyeon Lee
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Hoyeon Lee @ 2025-11-15 22:55 UTC (permalink / raw)
  To: bpf
  Cc: Hoyeon Lee, Nathan Chancellor, Nick Desaulniers, Bill Wendling,
	Justin Stitt, llvm

This series refactors several networking-related BPF selftests and fixes
a toolchain propagation issue in runqslower.

The first four patches simplify networking selftests by removing custom
IPv4/IPv6 address wrappers, migrating to sockaddr_storage, dropping
duplicated TCP helpers, and replacing open-coded congestion-control
string checks with bpf_strncmp(). These changes reduce duplication and
improve consistency without altering test behavior.

The final patch fixes a build issue where the runqslower sub-make does
not inherit the LLVM toolchain selected for the main selftests build.
By forwarding CLANG and LLVM_STRIP, the intended toolchain will be used
for the nested build.

Hoyeon Lee (5):
  selftests/bpf: use sockaddr_storage instead of addr_port in
    cls_redirect test
  selftests/bpf: use sockaddr_storage instead of sa46 in
    select_reuseport test
  selftests/bpf: move common TCP helpers into bpf_tracing_net.h
  selftests/bpf: replace TCP CC string comparisons with bpf_strncmp
  selftests/bpf: propagate LLVM toolchain to runqslower build

 tools/testing/selftests/bpf/Makefile          |  1 +
 .../selftests/bpf/prog_tests/cls_redirect.c   | 95 ++++++-------------
 .../bpf/prog_tests/select_reuseport.c         | 67 ++++++-------
 .../selftests/bpf/progs/bpf_cc_cubic.c        |  9 --
 tools/testing/selftests/bpf/progs/bpf_cubic.c |  7 --
 tools/testing/selftests/bpf/progs/bpf_dctcp.c |  6 --
 .../selftests/bpf/progs/bpf_iter_setsockopt.c | 17 +---
 .../selftests/bpf/progs/bpf_tracing_net.h     | 11 +++
 .../selftests/bpf/progs/connect4_prog.c       | 21 ++--
 .../bpf/progs/tcp_ca_write_sk_pacing.c        |  2 -
 tools/testing/selftests/lib.mk                |  1 +
 11 files changed, 87 insertions(+), 150 deletions(-)

-- 
2.51.1


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

end of thread, other threads:[~2025-11-19 16:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15 22:55 [bpf-next v1 0/5] selftests/bpf: networking test cleanups and build fix Hoyeon Lee
2025-11-15 22:55 ` [bpf-next v1 1/5] selftests/bpf: use sockaddr_storage instead of addr_port in cls_redirect test Hoyeon Lee
2025-11-18 23:12   ` Martin KaFai Lau
2025-11-19  3:09     ` Hoyeon Lee
2025-11-19 16:57       ` Martin KaFai Lau
2025-11-15 22:55 ` [bpf-next v1 2/5] selftests/bpf: use sockaddr_storage instead of sa46 in select_reuseport test Hoyeon Lee
2025-11-15 22:55 ` [bpf-next v1 3/5] selftests/bpf: move common TCP helpers into bpf_tracing_net.h Hoyeon Lee
2025-11-15 22:55 ` [bpf-next v1 4/5] selftests/bpf: replace TCP CC string comparisons with bpf_strncmp Hoyeon Lee
2025-11-15 22:55 ` [bpf-next v1 5/5] selftests/bpf: propagate LLVM toolchain to runqslower build Hoyeon Lee
2025-11-17  6:04   ` Yonghong Song
2025-11-17  6:37     ` Hoyeon Lee
2025-11-17 23:16 ` [bpf-next v1 0/5] selftests/bpf: networking test cleanups and build fix Amery Hung
2025-11-18 23:10 ` 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