[PATCH net] selftests: mptcp: connect: -f: no reconnect

2025-02-04 Thread Matthieu Baerts (NGI0)
e recent modification only shown an existing issue: xdisconnect() doesn't need to be used here, only the shutdown() part is needed. Fixes: 6bf41020b72b ("selftests: mptcp: update and extend fastclose test-cases") Cc: sta...@vger.kernel.org Reviewed-by: Mat Martineau Signed-off-by: Matthie

[PATCH net-next 4/6] selftests: mptcp: add -m with ss in case of errors

2025-01-14 Thread Matthieu Baerts (NGI0)
Recently, we had an issue where getting info about the memory would have helped better understanding what went wrong. Let add it just in case for later. Reviewed-by: Geliang Tang Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_lib.sh | 4 ++-- 1 file changed

[PATCH net-next 6/6] selftests: mptcp: connect: better display the files size

2025-01-14 Thread Matthieu Baerts (NGI0)
at' can be used instead, to display this instead: Created /tmp/tmp.UOyy0ghfmQ (size 4703740 B) containing data sent by client Created /tmp/tmp.xq3zvFinGo (size 1391724 B) containing data sent by server So easier to spot the file sizes. Reviewed-by: Geliang Tang Signed-off-by: Matthieu Baert

[PATCH net-next 5/6] selftests: mptcp: connect: remove unused variable

2025-01-14 Thread Matthieu Baerts (NGI0)
'cin_disconnect' is used in run_tests_disconnect(), but not 'cout_disconnect', so it is safe to drop it. Reviewed-by: Geliang Tang Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

[PATCH net-next 3/6] selftests: mptcp: move stats info in case of errors to lib.sh

2025-01-14 Thread Matthieu Baerts (NGI0)
A few MPTCP selftests are using the same code to print stats in case of error. This code can then be moved to mptcp_lib.sh. No behaviour changes intended, except to print the error in red and to stderr, like most error messages. Reviewed-by: Geliang Tang Signed-off-by: Matthieu Baerts (NGI0

[PATCH net-next 2/6] selftests: mptcp: sockopt: save nstat infos

2025-01-14 Thread Matthieu Baerts (NGI0)
From: Geliang Tang Similar to the way nstat information is stored in mptcp_connect.sh and mptcp_join.sh scripts, this patch adds a similar way for mptcp_sockopt.sh and displays the nstat information when errors occur. Signed-off-by: Geliang Tang Reviewed-by: Matthieu Baerts (NGI0) Signed-off

[PATCH net-next 1/6] selftests: mptcp: simult_flows: unify errors msgs

2025-01-14 Thread Matthieu Baerts (NGI0)
wed-by: Geliang Tang Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/simult_flows.sh | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh b/tools/testing/selftests/net/mptcp/s

[PATCH net-next 0/6] mptcp: selftests: more debug in case of errors

2025-01-14 Thread Matthieu Baerts (NGI0)
7; with '-m' in case of errors. Patch 5: Remove an unused variable. Patch 6: Print only the size instead of size + filename again. Signed-off-by: Matthieu Baerts (NGI0) --- Geliang Tang (1): selftests: mptcp: sockopt: save nstat infos Matthieu Baerts (NGI0) (5): selftes

[PATCH net 3/3] selftests: mptcp: avoid spurious errors on disconnect

2025-01-13 Thread Matthieu Baerts (NGI0)
ng the above failure. Address the issue explicitly waiting for all the relevant sockets to reach a closed status before performing the disconnect. Fixes: 05be5e273c84 ("selftests: mptcp: add disconnect tests") Cc: sta...@vger.kernel.org Signed-off-by: Paolo Abeni Reviewed-by: Matthieu

[PATCH net 2/3] mptcp: fix spurious wake-up on under memory pressure

2025-01-13 Thread Matthieu Baerts (NGI0)
: 5684ab1a0eff ("mptcp: give rcvlowat some love") Cc: sta...@vger.kernel.org Signed-off-by: Paolo Abeni Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) --- net/mptcp/protocol.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/mptcp/pr

[PATCH net 1/3] mptcp: be sure to send ack when mptcp-level window re-opens

2025-01-13 Thread Matthieu Baerts (NGI0)
: https://lore.kernel.org/20250107131845.5e5de...@kernel.org Signed-off-by: Paolo Abeni Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) --- net/mptcp/options.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mptcp/options.c b/

[PATCH net 0/3] mptcp: fixes for connect selftest flakes

2025-01-13 Thread Matthieu Baerts (NGI0)
est. A fix for v5.17. Link: https://lore.kernel.org/20250107131845.5e5de...@kernel.org [1] Link: https://lore.kernel.org/20241230-net-mptcp-rbuf-fixes-v1-0-8608af434...@kernel.org [2] Signed-off-by: Matthieu Baerts (NGI0) --- Paolo Abeni (3): mptcp: be sure to send ack when mptcp-level

[PATCH bpf-next/net v2 7/7] selftests/bpf: Add mptcp_subflow bpf_iter subtest

2024-12-19 Thread Matthieu Baerts (NGI0)
am "iters_subflow". skel->bss->ids is then checked to make sure it equals 10, the sum of each subflow ID: we should have 4 subflows: 1 + 2 + 3 + 4 = 10. If that's the case, the bpf_iter loop did the job as expected. Signed-off-by: Geliang Tang Reviewed-by: Matthieu

[PATCH bpf-next/net v2 6/7] selftests/bpf: More endpoints for endpoint_init

2024-12-19 Thread Matthieu Baerts (NGI0)
s" for endpoint_init() to control how many endpoints are used for the tests. This makes it more flexible. Update the parameters of endpoint_init() in test_subflow(). Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftes

[PATCH bpf-next/net v2 5/7] bpf: Acquire and release mptcp socket

2024-12-19 Thread Matthieu Baerts (NGI0)
elpers for this. Increase sk->sk_refcnt in _acquire() and decrease it in _release(). Register them with KF_ACQUIRE flag and KF_RELEASE flag. Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- net/mptcp/bpf.c | 19 +++ 1 file changed, 19 i

[PATCH bpf-next/net v2 4/7] bpf: Add mptcp_subflow bpf_iter

2024-12-19 Thread Matthieu Baerts (NGI0)
Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- Notes: - v2: - Add BUILD_BUG_ON() checks, similar to the ones done with other bpf_iter_(...) helpers. - Replace msk_owned_by_me() by sock_owned_by_user_nocheck() and !spin_is_locked

[PATCH bpf-next/net v2 3/7] bpf: Register mptcp common kfunc set

2024-12-19 Thread Matthieu Baerts (NGI0)
wrappers of them, and put the wrappers into mptcp common kfunc set and register the set with the flag BPF_PROG_TYPE_UNSPEC to let them accessible to all types of BPF programs. Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu

[PATCH bpf-next/net v2 2/7] bpf: Allow use of skc_to_mptcp_sock in cg_sockopt

2024-12-19 Thread Matthieu Baerts (NGI0)
, e.g. [gs]etsocktopt. Signed-off-by: Geliang Tang Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) --- Notes: - v2: new patch. --- kernel/bpf/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index

[PATCH bpf-next/net v2 1/7] bpf: Extend bpf_skc_to_mptcp_sock to MPTCP sock

2024-12-19 Thread Matthieu Baerts (NGI0)
So bpf_mptcp_sock_from_subflow is modified here to support MPTCP socket, and renamed to avoid confusions. Signed-off-by: Geliang Tang Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) --- Notes: - v2: new patch. --- include/net/mptcp.h | 4 ++-- net/core/filter.c | 2 +-

[PATCH bpf-next/net v2 0/7] bpf: Add mptcp_subflow bpf_iter support

2024-12-19 Thread Matthieu Baerts (NGI0)
h 7: add a very simple test validating mptcp_subflow bpf_iter support. This test could be written without the new bpf_iter, but it is there only to make sure this specific feature works as expected. Signed-off-by: Matthieu Baerts (NGI0) --- Changes in v2: - Patche

[PATCH bpf-next/net 0/5] bpf: Add mptcp_subflow bpf_iter support

2024-11-08 Thread Matthieu Baerts (NGI0)
w bpf_iter, but it is there only to make sure this specific feature works as expected. Signed-off-by: Matthieu Baerts (NGI0) --- Geliang Tang (5): bpf: Register mptcp common kfunc set bpf: Add mptcp_subflow bpf_iter bpf: Acquire and release mptcp socket selftests

[PATCH bpf-next/net 5/5] selftests/bpf: Add mptcp_subflow bpf_iter subtest

2024-11-08 Thread Matthieu Baerts (NGI0)
am "iters_subflow". skel->bss->ids is then checked to make sure it equals 10, the sum of each subflow ID: we should have 4 subflows: 1 + 2 + 3 + 4 = 10. If that's the case, the bpf_iter loop did the job as expected. Signed-off-by: Geliang Tang Reviewed-by: Matthieu Baerts (NGI

[PATCH bpf-next/net 4/5] selftests/bpf: More endpoints for endpoint_init

2024-11-08 Thread Matthieu Baerts (NGI0)
s" for endpoint_init() to control how many endpoints are used for the tests. This makes it more flexible. Update the parameters of endpoint_init() in test_subflow(). Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftes

[PATCH bpf-next/net 3/5] bpf: Acquire and release mptcp socket

2024-11-08 Thread Matthieu Baerts (NGI0)
elpers for this. Increase sk->sk_refcnt in _acquire() and decrease it in _release(). Register them with KF_ACQUIRE flag and KF_RELEASE flag. Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- net/mptcp/bpf.c | 19 +++ 1 file changed, 19 i

[PATCH bpf-next/net 2/5] bpf: Add mptcp_subflow bpf_iter

2024-11-08 Thread Matthieu Baerts (NGI0)
Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- Notes: A few versions of this single patch have been previously posted to the BPF mailing list by Geliang, before continuing to the MPTCP mailing list only, with other patches of this series. The

[PATCH bpf-next/net 1/5] bpf: Register mptcp common kfunc set

2024-11-08 Thread Matthieu Baerts (NGI0)
wrappers of them, and put the wrappers into mptcp common kfunc set and register the set with the flag BPF_PROG_TYPE_UNSPEC to let them accessible to all types of BPF programs. Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu

[PATCH net-next] selftests: net: include lib/sh/*.sh with lib.sh

2024-11-04 Thread Matthieu Baerts (NGI0)
e deferred commands") Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/forwarding/Makefile | 3 ++- tools/testing/selftests/net/mptcp/Makefile | 2 +- tools/testing/selftests/net/netfilter/Makefile | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH net 3/3] selftests: mptcp: list sysctl data

2024-10-21 Thread Matthieu Baerts (NGI0)
nings. Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh

[PATCH net 2/3] mptcp: remove unneeded lock when listing scheds

2024-10-21 Thread Matthieu Baerts (NGI0)
quot;mptcp: add net.mptcp.available_schedulers") Cc: sta...@vger.kernel.org Suggested-by: Paolo Abeni Reviewed-by: Geliang Tang Signed-off-by: Matthieu Baerts (NGI0) --- net/mptcp/sched.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/mptcp/sched.c b/net/mptcp/sched.c index 78ed508ebc1b8dd9f0e0

[PATCH net 1/3] mptcp: init: protect sched with rcu_read_lock

2024-10-21 Thread Matthieu Baerts (NGI0)
ff-by: Matthieu Baerts (NGI0) --- net/mptcp/protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 6d0e201c3eb26aa6ca0ff27e5a65cb6f911012f2..d263091659e076587bc3406dfdcb4409adb3247e 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protoc

[PATCH net 0/3] mptcp: sched: fix some lock issues

2024-10-21 Thread Matthieu Baerts (NGI0)
MPTCP selftests to cover more code. Signed-off-by: Matthieu Baerts (NGI0) --- Matthieu Baerts (NGI0) (3): mptcp: init: protect sched with rcu_read_lock mptcp: remove unneeded lock when listing scheds selftests: mptcp: list sysctl data net/mptcp/prot

[PATCH net v2 2/2] selftests: mptcp: join: test for prohibited MPC to port-based endp

2024-10-14 Thread Matthieu Baerts (NGI0)
ong in the selftests, but it validates the previous fix for an issue introduced by this commit ID. Fixes: 1729cf186d8a ("mptcp: create the listening socket for new port") Cc: sta...@vger.kernel.org Co-developed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) Signed-of

[PATCH net v2 1/2] mptcp: prevent MPC handshake on port-based signal endpoints

2024-10-14 Thread Matthieu Baerts (NGI0)
nel.org Reported-by: syzbot+f4aacdfef2c6a6529...@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=f4aacdfef2c6a6529c3e Cc: Cong Wang Signed-off-by: Paolo Abeni Reviewed-by: Matthieu Baerts (NGI0) Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) ---

[PATCH net v2 0/2] mptcp: prevent MPC handshake on port-based signal endpoints

2024-10-14 Thread Matthieu Baerts (NGI0)
oid regressions. Signed-off-by: Matthieu Baerts (NGI0) --- Changes in v2: - This new version fixes the root cause for the issue Cong Wang sent a patch for a few weeks ago, see the v1, and the explanations below. The new version is very different from the v1, from a different author. Thanks

[PATCH bpf-next/net v7 2/3] selftests/bpf: Add getsockopt to inspect mptcp subflow

2024-09-26 Thread Matthieu Baerts (NGI0)
only data need to be read here, it is enough to use this technique. It is planned to use bpf_iter, when BPF programs will be used to modify data from the different subflows. mptcp_subflow_tcp_sock() and mptcp_for_each_stubflow() helpers have also be imported. Suggested-by: Martin KaFai Lau Signed-

[PATCH bpf-next/net v7 3/3] selftests/bpf: Add mptcp subflow subtest

2024-09-26 Thread Matthieu Baerts (NGI0)
the MPTCP connection, while the BPF program will see different options set per subflow of the same MPTCP connection. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- Notes: - v2

[PATCH bpf-next/net v7 1/3] selftests/bpf: Add mptcp subflow example

2024-09-26 Thread Matthieu Baerts (NGI0)
MPTCP repo https://github.com/multipath-tcp/mptcp_net-next (the "scripts" branch), and it has been adapted by Geliang. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 Co-developed-by: Geliang Tang Signed-off-by: Geliang Tang Signed-off-by: Nicolas Rybowski Reviewed

[PATCH bpf-next/net v7 0/3] selftests/bpf: new MPTCP subflow subtest

2024-09-26 Thread Matthieu Baerts (NGI0)
second patch. Signed-off-by: Matthieu Baerts (NGI0) --- Changes in v7: - Patch 2/3: use 'can_loop' instead of 'cond_break'. (Martin) - Patch 3/3: use bpf_program__attach_cgroup(). (Martin) - Link to v6: https://lore.kernel.org/r/20240911-upstream-bpf-next-20240506-mptcp-subflow

[PATCH bpf-next/net v6 1/3] selftests/bpf: Add mptcp subflow example

2024-09-11 Thread Matthieu Baerts (NGI0)
MPTCP repo https://github.com/multipath-tcp/mptcp_net-next (the "scripts" branch), and it has been adapted by Geliang. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 Co-developed-by: Geliang Tang Signed-off-by: Geliang Tang Signed-off-by: Nicolas Rybowski Reviewed

[PATCH bpf-next/net v6 3/3] selftests/bpf: Add mptcp subflow subtest

2024-09-11 Thread Matthieu Baerts (NGI0)
the MPTCP connection, while the BPF program will see different options set per subflow of the same MPTCP connection. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- Notes: - v2

[PATCH bpf-next/net v6 2/3] selftests/bpf: Add getsockopt to inspect mptcp subflow

2024-09-11 Thread Matthieu Baerts (NGI0)
only data need to be read here, it is enough to use this technique. It is planned to use bpf_iter, when BPF programs will be used to modify data from the different subflows. mptcp_subflow_tcp_sock() and mptcp_for_each_stubflow() helpers have also be imported. Suggested-by: Martin KaFai Lau Signed-

[PATCH bpf-next/net v6 0/3] selftests/bpf: new MPTCP subflow subtest

2024-09-11 Thread Matthieu Baerts (NGI0)
second patch. Signed-off-by: Matthieu Baerts (NGI0) --- Changes in v6: - Patch 3/3: use usleep() instead of sleep() - Series: rebased on top of bpf-next/net - Link to v5: https://lore.kernel.org/r/20240910-upstream-bpf-next-20240506-mptcp-subflow-test-v5-0-2c664a7da...@kernel.org Changes in v5

[PATCH net 3/3] selftests: mptcp: include net_helper.sh file

2024-09-10 Thread Matthieu Baerts (NGI0)
/testing/selftests \ TARGETS=net/mptcp \ install INSTALL_PATH=$KSFT_INSTALL_PATH cd $KSFT_INSTALL_PATH ./run_kselftest.sh -c net/mptcp Fixes: 1af3bc912eac ("selftests: mptcp: lib: use wait_local_port_listen helper") Signed-off-by: Matthieu Baerts (NGI0) --- too

[PATCH net 2/3] selftests: mptcp: include lib.sh file

2024-09-10 Thread Matthieu Baerts (NGI0)
=net/mptcp \ install INSTALL_PATH=$KSFT_INSTALL_PATH cd $KSFT_INSTALL_PATH ./run_kselftest.sh -c net/mptcp Fixes: f265d3119a29 ("selftests: mptcp: lib: use setup/cleanup_ns helpers") Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/Makefile | 2

[PATCH net 1/3] selftests: mptcp: join: restrict fullmesh endp on 1st sf

2024-09-10 Thread Matthieu Baerts (NGI0)
ut for the parent one which is linked anyway. So we can know in advance what will be the expected behaviour, and add the new endpoint only when it makes sense to do so. Fixes: 4878f9f8421f ("selftests: mptcp: join: validate fullmesh endp on 1st sf") Cc: sta...@vger.kernel.org Signed-off-by: Ma

[PATCH net 0/3] selftests: mptcp: misc. small fixes

2024-09-10 Thread Matthieu Baerts (NGI0)
v6.11-rc1. Signed-off-by: Matthieu Baerts (NGI0) --- Matthieu Baerts (NGI0) (3): selftests: mptcp: join: restrict fullmesh endp on 1st sf selftests: mptcp: include lib.sh file selftests: mptcp: include net_helper.sh file tools/testing/selftests/net/mptcp/Makefile | 2

[PATCH bpf-next/net v5 3/3] selftests/bpf: Add mptcp subflow subtest

2024-09-10 Thread Matthieu Baerts (NGI0)
the MPTCP connection, while the BPF program will see different options set per subflow of the same MPTCP connection. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 Signed-off-by: Geliang Tang Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- Notes: - v2

[PATCH bpf-next/net v5 2/3] selftests/bpf: Add getsockopt to inspect mptcp subflow

2024-09-10 Thread Matthieu Baerts (NGI0)
only data need to be read here, it is enough to use this technique. It is planned to use bpf_iter, when BPF programs will be used to modify data from the different subflows. mptcp_subflow_tcp_sock() and mptcp_for_each_stubflow() helpers have also be imported. Suggested-by: Martin KaFai Lau Signed-

[PATCH bpf-next/net v5 1/3] selftests/bpf: Add mptcp subflow example

2024-09-10 Thread Matthieu Baerts (NGI0)
MPTCP repo https://github.com/multipath-tcp/mptcp_net-next (the "scripts" branch), and it has been adapted by Geliang. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 Co-developed-by: Geliang Tang Signed-off-by: Geliang Tang Signed-off-by: Nicolas Rybowski Reviewed

[PATCH bpf-next/net v5 0/3] selftests/bpf: new MPTCP subflow subtest

2024-09-10 Thread Matthieu Baerts (NGI0)
second patch. Signed-off-by: Matthieu Baerts (NGI0) --- Changes in v5: - See the individual changelog for more details about them - Patch 1/3: set TCP on the 2nd subflow - Patch 2/3: new - Patch 3/3: use the BPF program from patch 2/3 to do the validation instead of using ss. - Link to

[PATCH net-next v2 5/5] selftests: mptcp: connect: remove duplicated spaces in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
expecting only one space around the directive delimiter (#). While at it, change the variable name (result_msg) to something more explicit. Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 14 -- 1 file changed, 8 insertions(+), 6 deletions

[PATCH net-next v2 4/5] selftests: mptcp: diag: remove trailing whitespace

2024-09-06 Thread Matthieu Baerts (NGI0)
It doesn't need to be there, and it can cause some issues with TAP parsers expecting only one space around the directive delimiter (#). Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/diag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH net-next v2 3/5] selftests: mptcp: reset the last TS before the first test

2024-09-06 Thread Matthieu Baerts (NGI0)
-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 2 ++ tools/testing/selftests/net/mptcp/mptcp_join.sh| 3 ++- tools/testing/selftests/net/mptcp/mptcp_sockopt.sh | 1 + tools/testing/selftests/net/mptcp/pm_netlink.sh| 2 ++ tools/testing/selftests/net

[PATCH net-next v2 2/5] selftests: mptcp: connect: remote time in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
It is now added by the MPTCP lib automatically, see the parent commit. The time in the TAP output might be slightly different from the one displayed before, but that's OK. Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- v2: - Fixed typo in the commit message (

[PATCH net-next v2 1/5] selftests: mptcp: lib: add time per subtests in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
l.org/dev-tools/ktap.html [3] Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_lib.sh | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_lib.sh b/tools/testing/self

[PATCH net-next v2 0/5] selftests: mptcp: add time per subtests in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
proves the precision of the first subtests in all MPTCP subtests. Patches 4 and 5 remove duplicated spaces in TAP output, for the TAP parsers that cannot handle them properly. Link: https://github.com/linux-netdev/nipa/pull/36 Signed-off-by: Matthieu Baerts (NGI0) --- Changes in v2: - Typo in