mbox series

[bpf-next,v3,0/8] use network helpers, part 8

Message ID cover.1719105178.git.tanggeliang@kylinos.cn (mailing list archive)
Headers show
Series use network helpers, part 8 | expand

Message

Geliang Tang June 23, 2024, 1:19 a.m. UTC
From: Geliang Tang <tanggeliang@kylinos.cn>

v3:
 - a new patch to add backlog for network_helper_opts.
 - use start_server_str in sockmap_ktls now, not start_server.

v2:
 - address Eduard's comments in v1. (thanks)
 - fix errors reported by CI.

This patch set uses network helpers in sockmap_ktls and sk_lookup, and drop
three local helpers tcp_server(), inetaddr_len() and make_socket() in them.

Geliang Tang (8):
  selftests/bpf: Add backlog for network_helper_opts
  selftests/bpf: Use start_server_str in sockmap_ktls
  selftests/bpf: Use connect_to_fd in sockmap_ktls
  selftests/bpf: Use start_server_str in sk_lookup
  selftests/bpf: Use connect_to_fd in sk_lookup
  selftests/bpf: Use connect_to_addr in sk_lookup
  selftests/bpf: Drop inetaddr_len in sk_lookup
  selftests/bpf: Drop make_socket in sk_lookup

 tools/testing/selftests/bpf/network_helpers.c |   2 +-
 tools/testing/selftests/bpf/network_helpers.h |   1 +
 .../selftests/bpf/prog_tests/sk_lookup.c      | 138 ++++++------------
 .../selftests/bpf/prog_tests/sockmap_ktls.c   |  35 +----
 4 files changed, 57 insertions(+), 119 deletions(-)