Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/5] use network helpers, part 9
@ 2024-07-12  7:04 Geliang Tang
  2024-07-12  7:04 ` [PATCH bpf-next v2 1/5] selftests/bpf: Drop type of connect_to_fd_opts Geliang Tang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Geliang Tang @ 2024-07-12  7:04 UTC (permalink / raw)
  To: Andrii Nakryiko, Eduard Zingerman, Mykola Lysenko,
	Alexei Starovoitov, Daniel Borkmann, Martin KaFai Lau, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, Hao Luo, Jiri Olsa,
	Shuah Khan
  Cc: Geliang Tang, bpf, linux-kselftest

From: Geliang Tang <tanggeliang@kylinos.cn>

v2:
 - update patch 2 as Martin suggested.

This is the 9th part of series "use network helpers" all BPF selftests
wide.

Patches 1-2 update network helpers interfaces suggested by Martin.
Patch 3 adds a new helper connect_to_addr_str() as Martin suggested
instead of adding connect_fd_to_addr_str().
Patch 4 uses this newly added helper in make_client().
Patch 5 uses make_client() in sk_lookup and drop make_socket().

Geliang Tang (5):
  selftests/bpf: Drop type of connect_to_fd_opts
  selftests/bpf: Drop must_fail from network_helper_opts
  selftests/bpf: Add connect_to_addr_str helper
  selftests/bpf: Use connect_to_addr_str in sk_lookup
  selftests/bpf: Drop make_socket in sk_lookup

 tools/testing/selftests/bpf/network_helpers.c | 67 +++++++--------
 tools/testing/selftests/bpf/network_helpers.h |  5 +-
 .../selftests/bpf/prog_tests/bpf_tcp_ca.c     |  2 +-
 .../selftests/bpf/prog_tests/cgroup_v1v2.c    | 12 +--
 .../selftests/bpf/prog_tests/sk_lookup.c      | 84 ++++---------------
 5 files changed, 53 insertions(+), 117 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-07-12 17:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12  7:04 [PATCH bpf-next v2 0/5] use network helpers, part 9 Geliang Tang
2024-07-12  7:04 ` [PATCH bpf-next v2 1/5] selftests/bpf: Drop type of connect_to_fd_opts Geliang Tang
2024-07-12  7:04 ` [PATCH bpf-next v2 2/5] selftests/bpf: Drop must_fail from network_helper_opts Geliang Tang
2024-07-12 17:36   ` Martin KaFai Lau
2024-07-12  7:04 ` [PATCH bpf-next v2 3/5] selftests/bpf: Add connect_to_addr_str helper Geliang Tang
2024-07-12  7:04 ` [PATCH bpf-next v2 4/5] selftests/bpf: Use connect_to_addr_str in sk_lookup Geliang Tang
2024-07-12  7:04 ` [PATCH bpf-next v2 5/5] selftests/bpf: Drop make_socket " Geliang Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox