From: Geliang Tang <tanggeliang@kylinos.cn>
The parameter 'cgroup_fd' of run_mptcpify() is useless, drop it.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
tools/testing/selftests/bpf/prog_tests/mptcp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
index 1d68bbda3370..258587700187 100644
--- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
+++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
@@ -283,7 +283,7 @@ static int verify_mptcpify(int server_fd, int client_fd)
return err;
}
-static int run_mptcpify(int cgroup_fd)
+static int run_mptcpify(void)
{
int server_fd, client_fd, err = 0;
struct mptcpify *mptcpify_skel;
@@ -336,7 +336,7 @@ static void test_mptcpify(void)
if (!ASSERT_OK_PTR(netns, "netns_new"))
goto fail;
- ASSERT_OK(run_mptcpify(cgroup_fd), "run_mptcpify");
+ ASSERT_OK(run_mptcpify(), "run_mptcpify");
fail:
netns_free(netns);
--
2.43.0
Hi Geliang, On 15/01/2025 08:28, Geliang Tang wrote: > The parameter 'cgroup_fd' of run_mptcpify() is useless, drop it. Now in our tree (feat. for the other trees): New patches for t/upstream: - 93871f04a8c2: selftests/bpf: Drop cgroup_fd of run_mptcpify - Results: c466642ac4d2..73003c7d2f3c (export) Tests are now in progress: - export: https://github.com/multipath-tcp/mptcp_net-next/commit/90e596257648cc970ec6672edee15cbb1b8f7abd/checks Cheers, Matt -- Sponsored by the NGI0 Core fund.
Hi Geliang, On 15/01/2025 08:28, Geliang Tang wrote: > From: Geliang Tang <tanggeliang@kylinos.cn> > > The parameter 'cgroup_fd' of run_mptcpify() is useless, drop it. (detail: s/useless/unused/) The modification looks good to me, thank you! Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Do you want to send it directly to the BPF maintainers, for the bpf-next/net tree? We don't have other changes that are ready to send. Or I park it in our tree, and we send it later (no urgency I guess)? Cheers, Matt -- Sponsored by the NGI0 Core fund.
On Wed, 2025-01-15 at 10:31 +0100, Matthieu Baerts wrote: > Hi Geliang, > > On 15/01/2025 08:28, Geliang Tang wrote: > > From: Geliang Tang <tanggeliang@kylinos.cn> > > > > The parameter 'cgroup_fd' of run_mptcpify() is useless, drop it. > > (detail: s/useless/unused/) Thanks, please update this for me. > > The modification looks good to me, thank you! > > Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> > > Do you want to send it directly to the BPF maintainers, for the > bpf-next/net tree? We don't have other changes that are ready to > send. > > Or I park it in our tree, and we send it later (no urgency I guess)? Please merge it in our tree and send it later together with other bpf patches. Thanks, -Geliang > > Cheers, > Matt
© 2016 - 2026 Red Hat, Inc.