Re: [PATCH] selftest: mm: Test if hugepage does not get leaked during __bio_release_pages()

2024-05-25 Thread Donet Tom
On 5/24/24 23:43, Muhammad Usama Anjum wrote: Thank you for submitting a patch. On 5/22/24 11:39 PM, Donet Tom wrote: Commit 1b151e2435fc ("block: Remove special-casing of compound pages") caused a change in behaviour when releasing the pages if the buffer does not start at the beginning of t

[PATCH v2] selftests: livepatch: Test atomic replace against multiple modules

2024-05-25 Thread Marcos Paulo de Souza
EPLACE' livepatch: '$MOD_REPLACE': initializing patching transition @@ -149,6 +185,8 @@ livepatch: '$MOD_REPLACE': starting patching transition livepatch: '$MOD_REPLACE': completing patching transition livepatch: '$MOD_REPLACE': patching complete $M

[PATCH bpf-next v5 7/7] selftests/bpf: Add post_connect_cb callback

2024-05-25 Thread Geliang Tang
From: Geliang Tang For getting rid of the second parameter of do_test(), this patch adds a new callback post_connect_cb in struct network_helper_opts, it will be invoked after connect_fd_to_addr() in connect_to_fd_opts(). Then define a dctcp dedicated post_connect_cb callback, invoking bpf_map_l

[PATCH bpf-next v5 6/7] selftests/bpf: Use connect_to_fd_opts in do_test in bpf_tcp_ca

2024-05-25 Thread Geliang Tang
From: Geliang Tang This patch uses connect_to_fd_opts() instead of using connect_fd_to_fd() and settcpca() in do_test() in prog_tests/bpf_tcp_ca.c to accept a struct network_helper_opts argument. Then define a dctcp dedicated post_socket_cb callback stg_post_socket_cb(), invoking both cc_cb() an

[PATCH bpf-next v5 5/7] selftests/bpf: Use start_server_str in do_test in bpf_tcp_ca

2024-05-25 Thread Geliang Tang
From: Geliang Tang This patch uses new helper start_server_str() in do_test() in bpf_tcp_ca.c to accept a struct network_helper_opts argument instead of using start_server() and settcpca(). Then change the type of the first paramenter of do_test() into a struct network_helper_opts one. Define it

[PATCH bpf-next v5 4/7] selftests/bpf: Use post_socket_cb in start_server_str

2024-05-25 Thread Geliang Tang
From: Geliang Tang This patch uses start_server_str() helper in test_dctcp_fallback() in bpf_tcp_ca.c, instead of using start_server() and settcpca(). For support opts in start_server_str() helper, opts->cb_opts needs to be passed to post_socket_cb() in __start_server(). Signed-off-by: Geliang T

[PATCH bpf-next v5 3/7] selftests/bpf: Use post_socket_cb in connect_to_fd_opts

2024-05-25 Thread Geliang Tang
From: Geliang Tang Since the post_socket_cb() callback is added in struct network_helper_opts, it's make sense to use it not only in __start_server(), but also in connect_to_fd_opts(). Then it can be used to set TCP_CONGESTION sockopt. Add a "void *" type member cb_opts into struct network_helpe

[PATCH bpf-next v5 2/7] selftests/bpf: Add start_server_str helper

2024-05-25 Thread Geliang Tang
From: Geliang Tang It's a tech debt that start_server() does not take the "opts" argument. It's pretty handy to have start_server() as a helper that takes string address. So this patch creates a new helper start_server_str(). Then start_server() can be a wrapper of it. Signed-off-by: Geliang Ta

[PATCH bpf-next v5 1/7] selftests/bpf: Drop struct post_socket_opts

2024-05-25 Thread Geliang Tang
From: Geliang Tang It's not possible to have one generic/common "struct post_socket_opts" for all tests. It's better to have the individual test define its own callback opts struct. So this patch drops struct post_socket_opts, and changes the second parameter of post_socket_cb as "void *" type.

[PATCH bpf-next v5 0/7] use network helpers, part 5

2024-05-25 Thread Geliang Tang
From: Geliang Tang This patchset uses post_socket_cb and post_connect_cb callbacks of struct network_helper_opts to refactor do_test() in bpf_tcp_ca.c to move dctcp test dedicated code out of do_test() into test_dctcp(). v5: - address Martin's comments in v4 (thanks) - add patch 4, use start_s