* [PATCH mptcp-next v2] Squash to "selftests/bpf: Add mptcp subflow subtest"
@ 2024-08-20 9:19 Geliang Tang
2024-08-20 10:17 ` MPTCP CI
2024-08-20 10:31 ` Matthieu Baerts
0 siblings, 2 replies; 3+ messages in thread
From: Geliang Tang @ 2024-08-20 9:19 UTC (permalink / raw)
To: mptcp; +Cc: Geliang Tang
From: Geliang Tang <tanggeliang@kylinos.cn>
Close client_fd as Martin suggested.
Please update my email address of this patch squashed to as:
From: Geliang Tang <tanggeliang@kylinos.cn>
since BPF CI complained about it:
WARNING: From:/Signed-off-by: email address mismatch: 'From: Geliang Tang <geliang@kernel.org>' != 'Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>'
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
v2:
- use close_client/close_server.
---
tools/testing/selftests/bpf/prog_tests/mptcp.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
index 9d4e3c1d4e7b..73adc58cd776 100644
--- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
+++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
@@ -383,7 +383,7 @@ static void run_subflow(char *new)
{
int server_fd, client_fd, err;
char cc[TCP_CA_NAME_MAX];
- socklen_t len = sizeof(cc);
+ socklen_t len;
server_fd = start_mptcp_server(AF_INET, ADDR_1, PORT_1, 0);
if (!ASSERT_GE(server_fd, 0, "start_mptcp_server"))
@@ -391,11 +391,12 @@ static void run_subflow(char *new)
client_fd = connect_to_fd(server_fd, 0);
if (!ASSERT_GE(client_fd, 0, "connect to fd"))
- goto fail;
+ goto close_server;
+ len = sizeof(cc);
err = getsockopt(server_fd, SOL_TCP, TCP_CONGESTION, cc, &len);
- if (!ASSERT_OK(err, "getsockopt(srv_fd, TCP_CONGESTION)"))
- goto fail;
+ if (!ASSERT_OK(err, "getsockopt(server_fd, TCP_CONGESTION)"))
+ goto close_client;
send_byte(client_fd);
@@ -404,8 +405,9 @@ static void run_subflow(char *new)
ASSERT_OK(ss_search(ADDR_1, new), "ss_search new cc");
ASSERT_OK(ss_search(ADDR_2, cc), "ss_search default cc");
+close_client:
close(client_fd);
-fail:
+close_server:
close(server_fd);
}
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH mptcp-next v2] Squash to "selftests/bpf: Add mptcp subflow subtest"
2024-08-20 9:19 [PATCH mptcp-next v2] Squash to "selftests/bpf: Add mptcp subflow subtest" Geliang Tang
@ 2024-08-20 10:17 ` MPTCP CI
2024-08-20 10:31 ` Matthieu Baerts
1 sibling, 0 replies; 3+ messages in thread
From: MPTCP CI @ 2024-08-20 10:17 UTC (permalink / raw)
To: Geliang Tang; +Cc: mptcp
Hi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/10469116099
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/2c330e82cbb3
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=881246
If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:
$ cd [kernel source code]
$ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
--pull always mptcp/mptcp-upstream-virtme-docker:latest \
auto-normal
For more details:
https://github.com/multipath-tcp/mptcp-upstream-virtme-docker
Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)
Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH mptcp-next v2] Squash to "selftests/bpf: Add mptcp subflow subtest"
2024-08-20 9:19 [PATCH mptcp-next v2] Squash to "selftests/bpf: Add mptcp subflow subtest" Geliang Tang
2024-08-20 10:17 ` MPTCP CI
@ 2024-08-20 10:31 ` Matthieu Baerts
1 sibling, 0 replies; 3+ messages in thread
From: Matthieu Baerts @ 2024-08-20 10:31 UTC (permalink / raw)
To: Geliang Tang, mptcp; +Cc: Geliang Tang
Hi Geliang,
Thank you for the v2.
On 20/08/2024 11:19, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> Close client_fd as Martin suggested.
>
> Please update my email address of this patch squashed to as:
>
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> since BPF CI complained about it:
>
> WARNING: From:/Signed-off-by: email address mismatch: 'From: Geliang Tang <geliang@kernel.org>' != 'Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>'
The patch is in fact correct, but the modification is done by 'b4' when
sending the patch. In fact, it is due to 'git' that is being used, which
converts your @kylinos.cn email to your @kernel.org one, using the
mailmap file.
I will check if this behaviour can be modified.
> Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
> ---
> v2:
> - use close_client/close_server.
Thanks, it looks good to me!
New patches for t/upstream:
- 826f774c43cd: "squashed" in "selftests/bpf: Add mptcp subflow subtest"
- Results: a664f1d4a847..23c28f8bc503 (export)
Tests are now in progress:
- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/4e59dc87bc7f3470c557c163d262bad00da82050/checks
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-20 10:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20 9:19 [PATCH mptcp-next v2] Squash to "selftests/bpf: Add mptcp subflow subtest" Geliang Tang
2024-08-20 10:17 ` MPTCP CI
2024-08-20 10:31 ` Matthieu Baerts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox