Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/6] use network helpers, part 3
@ 2024-04-25  3:23 Geliang Tang
  2024-04-25  3:23 ` [PATCH bpf-next 1/6] selftests/bpf: Add opts argument for __start_server Geliang Tang
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Geliang Tang @ 2024-04-25  3:23 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, Stanislav Fomichev,
	Hao Luo, Jiri Olsa, Shuah Khan
  Cc: Geliang Tang, bpf, linux-kselftest, Geliang Tang

From: Geliang Tang <tanggeliang@kylinos.cn>

This patchset adds opts argument for __start_server, and adds setsockopt
pointer together with optval and optlen into struct network_helper_opts
to make start_server_addr helper more flexible. With these modifications,
many duplicate codes can be dropped.

Patch 4 addresses comments of Martin and Eduard in the previous series.

Geliang Tang (6):
  selftests/bpf: Add opts argument for __start_server
  selftests/bpf: Make start_mptcp_server static
  selftests/bpf: Drop start_server_proto helper
  selftests/bpf: Add setsockopt for network_helper_opts
  selftests/bpf: Use start_server_addr in sockopt_inherit
  selftests/bpf: Use start_server_addr in test_tcp_check_syncookie

 tools/testing/selftests/bpf/Makefile          |  1 +
 tools/testing/selftests/bpf/network_helpers.c | 53 ++++++++-------
 tools/testing/selftests/bpf/network_helpers.h |  5 +-
 .../testing/selftests/bpf/prog_tests/mptcp.c  | 16 +++++
 .../bpf/prog_tests/sockopt_inherit.c          | 34 ++++------
 .../bpf/test_tcp_check_syncookie_user.c       | 64 ++++++-------------
 6 files changed, 78 insertions(+), 95 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2024-05-01  0:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25  3:23 [PATCH bpf-next 0/6] use network helpers, part 3 Geliang Tang
2024-04-25  3:23 ` [PATCH bpf-next 1/6] selftests/bpf: Add opts argument for __start_server Geliang Tang
2024-04-25  3:23 ` [PATCH bpf-next 2/6] selftests/bpf: Make start_mptcp_server static Geliang Tang
2024-04-25  3:23 ` [PATCH bpf-next 3/6] selftests/bpf: Drop start_server_proto helper Geliang Tang
2024-04-25  3:23 ` [PATCH bpf-next 4/6] selftests/bpf: Add setsockopt for network_helper_opts Geliang Tang
2024-05-01  0:40   ` Martin KaFai Lau
2024-04-25  3:23 ` [PATCH bpf-next 5/6] selftests/bpf: Use start_server_addr in sockopt_inherit Geliang Tang
2024-04-25  3:23 ` [PATCH bpf-next 6/6] selftests/bpf: Use start_server_addr in test_tcp_check_syncookie Geliang Tang
2024-05-01  0:20 ` [PATCH bpf-next 0/6] use network helpers, part 3 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