Skip to content

use network helpers, part 4

Geliang Tang bpf linux-kselftest 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6selftests/bpf: Add post_socket_cb for network_helper_optstools/testing/selftests/bpf/network_helpers.c tools/testing/selftests/bpf/network_helpers.h+20 -91 replyApplied
2/6selftests/bpf: Use start_server_addr in sockopt_inherittools/testing/selftests/bpf/prog_tests/sockopt_inherit.c+12 -201 replyApplied
3/6selftests/bpf: Use start_server_addr in test_tcp_check_syncookietools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c+25 -440 repliesApplied
4/6selftests/bpf: Use connect_to_fd in sockopt_inherittools/testing/selftests/bpf/prog_tests/sockopt_inherit.c+1 -300 repliesApplied
5/6selftests/bpf: Use connect_to_fd in test_tcp_check_syncookietools/testing/selftests/bpf/test_tcp_check_syncookie_user.c+5 -330 repliesApplied
6/6selftests/bpf: Drop get_port in test_tcp_check_syncookietools/testing/selftests/bpf/test_tcp_check_syncookie_user.c+3 -180 repliesApplied

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/6] use network helpers, part 4

From: Geliang Tang <[email protected]>

This patchset adds post_socket_cb pointer together with 'struct post_socket_opts cb_opts' into struct network_helper_opts to make start_server_addr() helper more flexible. With these modifications, many duplicate codes can be dropped.

Patches 1-3 address Martin's comments in the previous series.

Geliang Tang (6):
selftests/bpf: Add post_socket_cb for network_helper_opts selftests/bpf: Use start_server_addr in sockopt_inherit selftests/bpf: Use start_server_addr in test_tcp_check_syncookie selftests/bpf: Use connect_to_fd in sockopt_inherit selftests/bpf: Use connect_to_fd in test_tcp_check_syncookie selftests/bpf: Drop get_port in test_tcp_check_syncookie

 tools/testing/selftests/bpf/Makefile          |   1 +
 tools/testing/selftests/bpf/network_helpers.c |  25 ++--
 tools/testing/selftests/bpf/network_helpers.h |   4 +
 .../bpf/prog_tests/sockopt_inherit.c          |  63 ++--------
 .../bpf/test_tcp_check_syncookie_user.c       | 117 ++++--------------
 5 files changed, 61 insertions(+), 149 deletions(-)
Signature · 1 line
2.43.0