mbox series

[bpf-next,v2,0/5] use network helpers, part 2

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

Message

Geliang Tang April 23, 2024, 10:35 a.m. UTC
From: Geliang Tang <tanggeliang@kylinos.cn>

This patchset uses more network helpers in test_sock_addr.c, but
first of all, patch 2 is needed to make network_helpers.c independent
of test_progs.c. Then network_helpers.h can be included into
test_sock_addr.c without compile errors.

Patch 1 and patch 2 address Martin's comments for the previous series
too.

v2:
 - Only a few minor cleanups to patch 5.

Geliang Tang (5):
  selftests/bpf: Fix a fd leak in error paths in open_netns
  selftests/bpf: Use log_err in open_netns/close_netns
  selftests/bpf: Use start_server_addr in test_sock_addr
  selftests/bpf: Use connect_to_addr in test_sock_addr
  selftests/bpf: Use make_sockaddr in test_sock_addr

 tools/testing/selftests/bpf/Makefile          |   3 +-
 tools/testing/selftests/bpf/network_helpers.c |  20 ++-
 tools/testing/selftests/bpf/network_helpers.h |   1 +
 .../selftests/bpf/prog_tests/empty_skb.c      |   2 +
 .../bpf/prog_tests/ip_check_defrag.c          |   2 +
 .../selftests/bpf/prog_tests/tc_redirect.c    |   2 +-
 .../selftests/bpf/prog_tests/test_tunnel.c    |   4 +
 .../selftests/bpf/prog_tests/xdp_metadata.c   |  16 ++
 tools/testing/selftests/bpf/test_sock_addr.c  | 138 +++---------------
 9 files changed, 63 insertions(+), 125 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org April 24, 2024, 8:20 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Martin KaFai Lau <martin.lau@kernel.org>:

On Tue, 23 Apr 2024 18:35:26 +0800 you wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
> 
> This patchset uses more network helpers in test_sock_addr.c, but
> first of all, patch 2 is needed to make network_helpers.c independent
> of test_progs.c. Then network_helpers.h can be included into
> test_sock_addr.c without compile errors.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2,1/5] selftests/bpf: Fix a fd leak in error paths in open_netns
    https://git.kernel.org/bpf/bpf-next/c/151f74424366
  - [bpf-next,v2,2/5] selftests/bpf: Use log_err in open_netns/close_netns
    https://git.kernel.org/bpf/bpf-next/c/285cffbaa8e6
  - [bpf-next,v2,3/5] selftests/bpf: Use start_server_addr in test_sock_addr
    https://git.kernel.org/bpf/bpf-next/c/e1cdb70d075e
  - [bpf-next,v2,4/5] selftests/bpf: Use connect_to_addr in test_sock_addr
    https://git.kernel.org/bpf/bpf-next/c/c6c407984281
  - [bpf-next,v2,5/5] selftests/bpf: Use make_sockaddr in test_sock_addr
    https://git.kernel.org/bpf/bpf-next/c/e4c68bbaff11

You are awesome, thank you!