mbox series

[bpf-next,v5,0/2] export send_recv_data

Message ID cover.1712813933.git.tanggeliang@kylinos.cn (mailing list archive)
Headers show
Series export send_recv_data | expand

Message

Geliang Tang April 11, 2024, 5:43 a.m. UTC
From: Geliang Tang <tanggeliang@kylinos.cn>

v5:
 - address Martin's comments for v4 (thanks).
 - update patch 2, use 'return err' instead of 'return -1/0'.
 - drop patch 3 in v4.

v4:
 - fix a bug in v3, it should be 'if (err)', not 'if (!err)'.
 - move "selftests/bpf: Use log_err in network_helpers" out of this
   series.

v3:
 - add two more patches.
 - use log_err instead of ASSERT in v3.
 - let send_recv_data return int as Martin suggested.

v2:

Address Martin's comments for v1 (thanks.)
 - drop patch 1, "export send_byte helper".
 - drop "WRITE_ONCE(arg.stop, 0)".
 - rebased.

send_recv_data will be re-used in MPTCP bpf tests, but not included
in this set because it depends on other patches that have not been
in the bpf-next yet. It will be sent as another set soon.

Geliang Tang (2):
  selftests/bpf: Add struct send_recv_arg
  selftests/bpf: Export send_recv_data helper

 tools/testing/selftests/bpf/network_helpers.c | 96 +++++++++++++++++++
 tools/testing/selftests/bpf/network_helpers.h |  1 +
 .../selftests/bpf/prog_tests/bpf_tcp_ca.c     | 71 +-------------
 3 files changed, 98 insertions(+), 70 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org April 11, 2024, 7: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 Thu, 11 Apr 2024 13:43:10 +0800 you wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
> 
> v5:
>  - address Martin's comments for v4 (thanks).
>  - update patch 2, use 'return err' instead of 'return -1/0'.
>  - drop patch 3 in v4.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v5,1/2] selftests/bpf: Add struct send_recv_arg
    https://git.kernel.org/bpf/bpf-next/c/68acca6e6f99
  - [bpf-next,v5,2/2] selftests/bpf: Export send_recv_data helper
    https://git.kernel.org/bpf/bpf-next/c/dc34e44ea6a1

You are awesome, thank you!