use start_server and connect_to helpers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest14 patches 6 repliesIn review
- v114 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- update patch 6 only, fix errors reported by CI.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | selftests/bpf: Add start_server_addr helpertools/ tools/ | +6 | 1 reply | |
| 2/14 | selftests/bpf: Use start_server_addr in cls_redirecttools/ | +2 | 0 replies | |
| 3/14 | selftests/bpf: Use connect_to_addr in cls_redirecttools/ | +1 | 0 replies | |
| 4/14 | selftests/bpf: Use start_server_addr in sk_assigntools/ | +2 | 0 replies | |
| 5/14 | selftests/bpf: Use connect_to_addr in sk_assigntools/ | +1 | 1 reply | |
| 6/14 | selftests/bpf: Use log_err in network_helperstools/ | +14 | 0 replies | |
| 7/14 | selftests/bpf: Use start_server_addr in test_sock_addrtools/ tools/ tools/ | +7 | 0 replies | |
| 8/14 | selftests/bpf: Use connect_to_addr in test_sock_addrtools/ | +2 | 0 replies | |
| 9/14 | selftests/bpf: Add function pointer for __start_servertools/ | +13 | 1 reply | |
| 10/14 | selftests/bpf: Add start_server_setsockopt helpertools/ tools/ | +8 | 0 replies | |
| 11/14 | selftests/bpf: Use start_server_setsockopt in sockopt_inherittools/ | +14 | 2 replies | |
| 12/14 | selftests/bpf: Use connect_to_fd in sockopt_inherittools/ | +1 | 0 replies | |
| 13/14 | selftests/bpf: Use start_server_* in test_tcp_check_syncookietools/ tools/ | +12 | 0 replies | |
| 14/14 | selftests/bpf: Use connect_to_addr in test_tcp_check_syncookietools/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH bpf-next v2 00/14] use start_server and connect_to helpers
From: Geliang Tang <[email protected]>
v2:
- update patch 6 only, fix errors reported by CI.
This patchset uses public helpers start_server_* and connect_to_* defined in network_helpers.c to drop duplicate code.
Geliang Tang (14):
selftests/bpf: Add start_server_addr helper selftests/bpf: Use start_server_addr in cls_redirect selftests/bpf: Use connect_to_addr in cls_redirect selftests/bpf: Use start_server_addr in sk_assign selftests/bpf: Use connect_to_addr in sk_assign selftests/bpf: Use log_err in network_helpers selftests/bpf: Use start_server_addr in test_sock_addr selftests/bpf: Use connect_to_addr in test_sock_addr selftests/bpf: Add function pointer for __start_server selftests/bpf: Add start_server_setsockopt helper selftests/bpf: Use start_server_setsockopt in sockopt_inherit selftests/bpf: Use connect_to_fd in sockopt_inherit selftests/bpf: Use start_server_* in test_tcp_check_syncookie selftests/bpf: Use connect_to_addr in test_tcp_check_syncookie
tools/testing/selftests/bpf/Makefile | 4 +- tools/testing/selftests/bpf/network_helpers.c | 50 ++++++++---- tools/testing/selftests/bpf/network_helpers.h | 4 + .../selftests/bpf/prog_tests/cls_redirect.c | 38 +--------- .../selftests/bpf/prog_tests/sk_assign.c | 53 +------------ .../bpf/prog_tests/sockopt_inherit.c | 64 ++++------------ tools/testing/selftests/bpf/test_sock_addr.c | 74 ++---------------- .../bpf/test_tcp_check_syncookie_user.c | 76 +++---------------- 8 files changed, 83 insertions(+), 280 deletions(-)
Signature · 1 line
2.40.1