[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

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

2024-09-10 Thread Matthieu Baerts
Hello, On 10/09/2024 16:13, Matthieu Baerts (NGI0) wrote: > From: Geliang Tang > > This patch adds a subtest named test_subflow in test_mptcp to load and > verify the newly added MPTCP subflow BPF program. To goal is to make > sure it is possible to set different socket optio

[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

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

2024-09-04 Thread Matthieu Baerts
Hi Jakub, Thank you for your reply! On 04/09/2024 21:40, Jakub Kicinski wrote: > On Wed, 4 Sep 2024 18:15:09 +0200 Matthieu Baerts wrote: >>> Best I could come up with is: >>> >>> diff --git a/contest/remote/vmksft-p.py b/contest/remote/vmksft-p.py >>>

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

2024-09-04 Thread Matthieu Baerts
Hi Jakub, On 04/09/2024 01:22, Jakub Kicinski wrote: > On Mon, 02 Sep 2024 13:13:03 +0200 Matthieu Baerts (NGI0) wrote: >> Patches here add 'time=ms' in the diagnostic data of the TAP output, >> e.g. >> >> ok 1 - pm_netlink: defaults addr list # time=9ms &

Re: [PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard

2021-04-17 Thread Matthieu Baerts
Hi David, Nico, On 17/04/2021 06:24, David Gow wrote: Hi Matt, Like patch 1/6, I can apply it in MPTCP tree and send it later to net-next with other patches. Except if you guys prefer to apply it in KUnit tree and send it to linux-next? Given 1/6 is going to net-next, it makes sense to send

Re: [PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard

2021-04-15 Thread Matthieu Baerts
Hi David, Thank you for your very clear reply! On 15/04/2021 08:01, David Gow wrote: On Wed, Apr 14, 2021 at 5:25 PM Matthieu Baerts wrote: Up to the KUnit maintainers to decide ;-) To summarise my view: personally, I'd prefer things the way this patch works: have everything e

Re: [PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard

2021-04-14 Thread Matthieu Baerts
Hi Nico, On 14/04/2021 10:58, Nico Pache wrote: Drop 'S' from end of CONFIG_MPTCP_KUNIT_TESTS inorder to adhear to the KUNIT *_KUNIT_TEST config name format. For MPTCP, we have multiple KUnit tests: crypto and token. That's why we wrote TESTS with a S. I'm fine without S if we need to stick

[tip: locking/core] static_call: Fix unused variable warn w/o MODULE

2021-04-09 Thread tip-bot2 for Matthieu Baerts
The following commit has been merged into the locking/core branch of tip: Commit-ID: 7d95f22798ecea513f37b792b39fec4bcf20fec3 Gitweb: https://git.kernel.org/tip/7d95f22798ecea513f37b792b39fec4bcf20fec3 Author:Matthieu Baerts AuthorDate:Fri, 26 Mar 2021 11:50:23 +01:00

[PATCH mptcp-next] static_call: fix unused variable warn w/o MODULE

2021-03-26 Thread Matthieu Baerts
all: Align static_call_is_init() patching condition") Signed-off-by: Matthieu Baerts --- Notes: Feel free to modify this patch directly if you prefer. I can of course send a new version if needed. kernel/static_call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(

Re: possible deadlock in ipv6_sock_mc_close

2021-03-01 Thread Matthieu Baerts
Hi Chuck, (+ cc: MPTCP list) On 01/03/2021 15:52, Chuck Lever wrote: On Mar 1, 2021, at 8:49 AM, syzbot wrote: (...) syzbot found the following issue on: (...) Hi, thanks for the report. Initial analysis: c8e88e3aa738 ("NFSD: Replace READ* macros in nfsd4_decode_layoutget()" changes

Re: [MPTCP] WARNING: net/mptcp/protocol.c:719 mptcp_reset_timer+0x40/0x50

2020-11-19 Thread Matthieu Baerts
Hi Naresh, On 19/11/2020 08:04, Naresh Kamboju wrote: While running kselftest net/mptcp: mptcp_join.sh on x86_64 device running linux next 20201118 tag the following warning was noticed. Thank you for testing MPTCP and having reported this bug! It looks like it is similar to what syzbot repor

Re: [PATCH net-next v4] net: linux/skbuff.h: combine SKB_EXTENSIONS + KCOV handling

2020-11-16 Thread Matthieu Baerts
Hi Randy, On 16/11/2020 04:17, Randy Dunlap wrote: The previous Kconfig patch led to some other build errors as reported by the 0day bot and my own overnight build testing. These are all in when KCOV is enabled but SKB_EXTENSIONS is not enabled, so fix those by combining those conditions in th

Re: [PATCH net-next] net: linux/skbuff.h: combine NET + KCOV handling

2020-11-14 Thread Matthieu Baerts
Hi Randy, On 14/11/2020 02:11, Randy Dunlap wrote: The previous Kconfig patch led to some other build errors as reported by the 0day bot and my own overnight build testing. Thank you for looking at that! I had the same issue and I was going to propose a similar fix with one small difference,

Re: [MPTCP][PATCH net 1/2] mptcp: fix static checker warnings in mptcp_pm_add_timer

2020-11-09 Thread Matthieu Baerts
Hi Jakub, 09 Nov 2020 21:57:05 Jakub Kicinski : > On Mon, 9 Nov 2020 17:28:54 +0100 Matthieu Baerts wrote: >> A small detail (I think): the Signed-off-by of the sender (Geliang) >> should be the last one in the list if I am not mistaken. >> But I guess this is not blocki

Re: [MPTCP][PATCH net 2/2] mptcp: cleanup for mptcp_pm_alloc_anno_list

2020-11-09 Thread Matthieu Baerts
Hi Geliang, On 09/11/2020 14:59, Geliang Tang wrote: This patch added NULL pointer check for mptcp_pm_alloc_anno_list, and avoided similar static checker warnings in mptcp_pm_add_timer. Signed-off-by: Geliang Tang Reviewed-by: Dan Carpenter I think Dan reviewed the v1 of your patch -- witho

Re: [MPTCP][PATCH net 1/2] mptcp: fix static checker warnings in mptcp_pm_add_timer

2020-11-09 Thread Matthieu Baerts
detail (I think): the Signed-off-by of the sender (Geliang) should be the last one in the list if I am not mistaken. But I guess this is not blocking. Reviewed-by: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [MPTCP] Re: [selftests] f2ff7f11f9: WARNING:suspicious_RCU_usage

2020-10-28 Thread Matthieu Baerts
Hi Philip, On 28/10/2020 00:00, Philip Li wrote: On Tue, Oct 27, 2020 at 04:07:28PM +0100, Matthieu Baerts wrote: FYI, this was already reported earlier: https://github.com/multipath-tcp/mptcp_net-next/issues/102 Thanks for the info, we didn't notice this. We will take a look of rep

Re: [MPTCP] [selftests] f2ff7f11f9: WARNING:suspicious_RCU_usage

2020-10-27 Thread Matthieu Baerts
Hi all, On 27/10/2020 14:16, kernel test robot wrote: Greeting, FYI, we noticed the following commit (built with gcc-9): commit: f2ff7f11f9a74842245db52d685bf9bc7ac2c4b1 ("selftests: mptcp: add ADD_ADDR IPv6 test cases") https://github.com/multipath-tcp/mptcp_net-next.git export Thanks for

Re: [PATCH 5.9 580/757] selftests: mptcp: depends on built-in IPv6

2020-10-27 Thread Matthieu Baerts
Hi Greg, On 27/10/2020 14:53, Greg Kroah-Hartman wrote: From: Matthieu Baerts [ Upstream commit 287d35405989cfe0090e3059f7788dc531879a8d ] Recently, CONFIG_MPTCP_IPV6 no longer selects CONFIG_IPV6. As a consequence, if CONFIG_MPTCP_IPV6=y is added to the kconfig, it will no longer ensure

[PATCH net] selftests: mptcp: depends on built-in IPv6

2020-10-21 Thread Matthieu Baerts
on IPV6 instead of selecting it") Signed-off-by: Matthieu Baerts --- tools/testing/selftests/net/mptcp/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/mptcp/config b/tools/testing/selftests/net/mptcp/config index 8df5cb8f71ff..741a1c4f4ae8 100644 --

Re: [PATCH] mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it

2020-10-21 Thread Matthieu Baerts
Hi Geert, On 21/10/2020 11:52, Geert Uytterhoeven wrote: Hi Matthieu, On Wed, Oct 21, 2020 at 11:47 AM Matthieu Baerts wrote: On 21/10/2020 11:43, Geert Uytterhoeven wrote: On Wed, Oct 21, 2020 at 5:56 AM Jakub Kicinski wrote: On Tue, 20 Oct 2020 11:26:34 +0200 Matthieu Baerts wrote: On

[PATCH net] mptcp: depends on IPV6 but not as a module

2020-10-21 Thread Matthieu Baerts
G_IPV6=m. But selecting IPV6 like we did before was forcing it to be built-in while it was maybe not what the user wants. Reported-by: Geert Uytterhoeven Fixes: 010b430d5df5 ("mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it") Signed-off-by: Matthieu Baerts --- Notes: Fo

Re: [PATCH] mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it

2020-10-21 Thread Matthieu Baerts
Hi Geert, On 21/10/2020 11:43, Geert Uytterhoeven wrote: Hi Jakub, On Wed, Oct 21, 2020 at 5:56 AM Jakub Kicinski wrote: On Tue, 20 Oct 2020 11:26:34 +0200 Matthieu Baerts wrote: On 20/10/2020 09:38, Geert Uytterhoeven wrote: MPTCP_IPV6 selects IPV6, thus enabling an optional feature the

Re: [MPTCP][PATCH net-next 0/2] init ahmac and port of mptcp_options_received

2020-10-20 Thread Matthieu Baerts
Hi Jakub, On 19/10/2020 22:40, Jakub Kicinski wrote: On Mon, 19 Oct 2020 18:27:55 +0200 Matthieu Baerts wrote: Hi Geliang, On 19/10/2020 12:23, Geliang Tang wrote: This patchset deals with initializations of mptcp_options_received's two fields, ahmac and port. Geliang Tang (2):

Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it

2020-10-20 Thread Matthieu Baerts
Hi Geert, On 20/10/2020 09:40, Geert Uytterhoeven wrote: On Mon, Oct 19, 2020 at 10:38 PM Geert Uytterhoeven wrote: On Mon, Oct 19, 2020 at 5:47 PM Matthieu Baerts wrote: On 19/10/2020 13:32, Geert Uytterhoeven wrote: MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the

Re: [PATCH] mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it

2020-10-20 Thread Matthieu Baerts
: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [MPTCP][PATCH net-next 0/2] init ahmac and port of mptcp_options_received

2020-10-19 Thread Matthieu Baerts
ut a re-submit, here is my: Reviewed-by: Matthieu Baerts Also, if you don't mind and while I am here, I never know: is it OK for you the maintainers to send one Acked/Reviewed-by for a whole series -- but then this is not reflected on patchwork -- or should we send one tag for e

Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it

2020-10-19 Thread Matthieu Baerts
have an easy way to enable all KUnit tests. We imitated what was and is still done in fs/ext4/Kconfig. But it probably makes sense to depend on MPTCP instead of selecting it. So that's fine for me. But then please also send a patch to ext4 maintainer to do the same there. Reviewed-by: Mat

Re: [PATCH 4/6] ACPICA: Add support for using logical addresses of GPE blocks

2020-10-16 Thread Matthieu Baerts
Hi Rafael, On 16/10/2020 19:15, Rafael J. Wysocki wrote: On Friday, October 16, 2020 4:30:55 PM CEST Matthieu Baerts wrote: By chance, do you already have a fix for that? Can you please try the appended patch? Thank you for the patch, this fixes the compilation warning I got. Reported

Re: [PATCH 4/6] ACPICA: Add support for using logical addresses of GPE blocks

2020-10-16 Thread Matthieu Baerts
Hi Rafael, On 04/09/2020 19:24, Rafael J. Wysocki wrote: From: "Rafael J. Wysocki" The logical address of every GPE block in system memory must be known before passing it to acpi_ev_initialize_gpe_block(), because memory cannot be mapped on the fly from an interrupt handler. Accordingly, the h

[PATCH net-next] selftests: mptcp: interpret \n as a new line

2020-10-06 Thread Matthieu Baerts
netns". The commit 8b974778f998 ("selftests: mptcp: interpret \n as a new line") is very similar to this one. But the modification in simult_flows.sh was missed because this commit above was done in parallel to one here below. Fixes: 1a418cb8e888 ("mptcp: simult flow self-tests&

[PATCH net-next] mptcp: ADD_ADDRs with echo bit are smaller

2020-10-03 Thread Matthieu Baerts
(and read): the remaining bytes contained garbage. Fixes: 6a6c05a8b016 ("mptcp: send out ADD_ADDR with echo flag") Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/95 Reported-and-tested-by: Davide Caratti Acked-by: Geliang Tang Signed-off-by: Matthieu Baerts ---

Re: [PATCH net-next v3] mptcp: Wake up MPTCP worker when DATA_FIN found on a TCP FIN packet

2020-09-21 Thread Matthieu Baerts
Hi David, Jakub, On 21/09/2020 16:57, Matthieu Baerts wrote: From: Mat Martineau When receiving a DATA_FIN MPTCP option on a TCP FIN packet, the DATA_FIN information would be stored but the MPTCP worker did not get scheduled. In turn, the MPTCP socket state would remain in TCP_ESTABLISHED and

[PATCH net-next v3] mptcp: Wake up MPTCP worker when DATA_FIN found on a TCP FIN packet

2020-09-21 Thread Matthieu Baerts
://github.com/multipath-tcp/mptcp_net-next/issues/84 Fixes: 43b54c6ee382 ("mptcp: Use full MPTCP-level disconnect state machine") Acked-by: Paolo Abeni Signed-off-by: Mat Martineau Signed-off-by: Matthieu Baerts --- Notes: This is a resend of v1 and v2 with the same code modification. The

[PATCH net-next] selftests: mptcp: interpret \n as a new line

2020-09-16 Thread Matthieu Baerts
8fbf241064 ("selftests: add test-cases for MPTCP MP_JOIN") Fixes: 048d19d444be ("mptcp: add basic kselftest for mptcp") Signed-off-by: Matthieu Baerts --- Notes: This commit improves the output in selftests in case of errors, mostly seen when modifying MPTCP code.

Re: [PATCH][next] mptcp: fix spelling mistake "colesced" -> "coalesced"

2020-09-15 Thread Matthieu Baerts
Hi Colin, On 15/09/2020 10:44, Colin King wrote: From: Colin Ian King There is a spelling mistake a pr_debug message. Fix it. Thank you for the patch! Reviewed-by: Matthieu Baerts Now I don't know if it can be accepted if it was not sent to netdev ML. You might have to re-submit i

Re: [MPTCP][PATCH v2 net 2/2] mptcp: fix subflow's remote_id issues

2020-09-09 Thread Matthieu Baerts
dd netlink-based PM") Fixes: ec3edaa7ca6ce ("mptcp: Add handling of outgoing MP_JOIN requests") Fixes: f296234c98a8f ("mptcp: Add handling of incoming MP_JOIN requests") Signed-off-by: Geliang Tang Thank you for the v2! Reviewed-by: Matthieu Baerts Cheers, Matt --

Re: [MPTCP][PATCH v2 net 1/2] mptcp: fix subflow's local_id issues

2020-09-09 Thread Matthieu Baerts
we ignore this address. Fixes: 01cacb00b35cb ("mptcp: add netlink-based PM") Signed-off-by: Geliang Tang Thank you for the v2! Reviewed-by: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [MPTCP][PATCH net 2/2] mptcp: fix subflow's remote_id issues

2020-09-07 Thread Matthieu Baerts
Hi Geliang, On 07/09/2020 12:29, Geliang Tang wrote: This patch set the init remote_id to zero, otherwise it will be a random number. Then it added the missing subflow's remote_id setting code both in __mptcp_subflow_connect and in subflow_ulp_clone. Thank you for this other patch! Here as w

Re: [MPTCP][PATCH net 1/2] mptcp: fix subflow's local_id issues

2020-09-07 Thread Matthieu Baerts
Hi Geliang, On 07/09/2020 12:29, Geliang Tang wrote: In mptcp_pm_nl_get_local_id, skc_local is the same as msk_local, so it always return 0. Thus every subflow's local_id is 0. It's incorrect. This patch fixed this issue. Also, we need to ignore the zero address here, like 0.0.0.0 in IPv4. Whe

Re: [PATCH net 1/2] net: refactor bind_bucket fastreuse into helper

2020-08-06 Thread Matthieu Baerts
Hi Tim, Thank you for having sent the patch! On 06/08/2020 08:41, Tim Froidcoeur wrote: Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. (...) diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_so

[PATCH net] mptcp: fix joined subflows with unblocking sk

2020-07-27 Thread Matthieu Baerts
other host didn't announce another one. This also fixes inet_diag showing blank info about MPTCP sockets from unblocking sockets doing a connect(). Fixes: 41be81a8d3d0 ("mptcp: fix unblocking connect()") Signed-off-by: Matthieu Baerts --- net/mptcp/protocol.c | 2 +- 1 file changed, 1

Re: [MPTCP] [PATCH 08/26] net: switch sock_set_timeout to sockptr_t

2020-07-23 Thread Matthieu Baerts
: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [MPTCP] [PATCH 25/26] net: pass a sockptr_t into ->setsockopt

2020-07-23 Thread Matthieu Baerts
Schmidt [ieee802154] --- net/mptcp/protocol.c | 12 +++ Thank you for the v2! For MPTCP-related code: Acked-by: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [MPTCP] [PATCH 24/24] net: pass a sockptr_t into ->setsockopt

2020-07-22 Thread Matthieu Baerts
Hi Christoph, On 20/07/2020 14:47, Christoph Hellwig wrote: Rework the remaining setsockopt code to pass a sockptr_t instead of a plain user pointer. This removes the last remaining set_fs(KERNEL_DS) outside of architecture specific code. Signed-off-by: Christoph Hellwig --- ... diff --git

Re: [MPTCP] [PATCH 05/22] net: remove compat_sock_common_{get,set}sockopt

2020-07-17 Thread Matthieu Baerts
wig --- include/linux/net.h | 6 -- include/net/sock.h | 4 net/core/sock.c | 30 ++ net/mptcp/protocol.c | 6 -- Thank you for looking at that! For MPTCP-related code: Acked-by: Matthieu Baerts Cheers, Matt -- Tessares | Belg

[PATCH net-next] selftests: mptcp: capture pcap on both sides

2020-07-06 Thread Matthieu Baerts
79a56-X4O6gS-ns3-ns4-MPTCP-MPTCP-10.0.3.1-10030-listener.pcap It was a connection from ns3 to ns4, better to start with ns3 then. The port is also added, easier to find the trace we want. Co-developed-by: Christoph Paasch Signed-off-by: Christoph Paasch Signed-off-by: Matthieu Baerts ---

Re: [PATCH net v2] mptcp: drop sndr_key in mptcp_syn_options

2020-06-22 Thread Matthieu Baerts
ding to v1 spec") Signed-off-by: Geliang Tang Thank you for this v2. It looks good to me! Reviewed-by: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [PATCH net-next 0/3] add MP_PRIO, MP_FAIL and MP_FASTCLOSE suboptions handling

2020-06-18 Thread Matthieu Baerts
Hi Geliang, On 18/06/2020 08:27, Geliang Tang wrote: On Tue, Jun 16, 2020 at 05:18:56PM +0200, Matthieu Baerts wrote: On 16/06/2020 08:47, Geliang Tang wrote: >> I would suggest you to discuss about that on MPTCP mailing list. We also have meetings every Thursday. New devs are always w

Re: [PATCH net-next 0/3] add MP_PRIO, MP_FAIL and MP_FASTCLOSE suboptions handling

2020-06-16 Thread Matthieu Baerts
Hi Geliang On 16/06/2020 08:47, Geliang Tang wrote: Add handling for sending and receiving the MP_PRIO, MP_FAIL, and MP_FASTCLOSE suboptions. Thank you for the patches! Unfortunately, I don't think it would be wise to accept them now: for the moment, these suboptions are ignored at the recep

Re: [PATCH net v2] mptcp: drop MPTCP_PM_MAX_ADDR

2020-06-15 Thread Matthieu Baerts
ot;mptcp: unify MPTCP_PM_MAX_ADDR and MPTCP_PM_ADDR_MAX" Thank you for this v2, it looks good to me! Reviewed-by: Matthieu Baerts Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net

Re: [PATCH] mptcp: unify MPTCP_PM_MAX_ADDR and MPTCP_PM_ADDR_MAX

2020-06-12 Thread Matthieu Baerts
Hi Geliang, On 12/06/2020 07:27, Geliang Tang wrote: Unify these two duplicate macros into 8. Thank you for this new patch! (...) diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index 809687d3f410..86d265500cf6 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -135,7

Re: [PATCH net v2] mptcp: bugfix for RM_ADDR option parsing

2020-06-08 Thread Matthieu Baerts
ang Tang --- Changes in v2: - Add "-net" subject and "Fixes" tag as Matt suggested. Thanks for this v2! LGTM! Reviewed-by: Matthieu Baerts Cheers, Matt -- Matthieu Baerts | R&D Engineer matthieu.bae...@tessares.net Tessares SA | Hybrid Access Solutions www.tessares.net 1 Avenue Jean Monnet, 1348 Louvain-la-Neuve, Belgium

Re: [PATCH] mptcp: bugfix for RM_ADDR option parsing

2020-06-08 Thread Matthieu Baerts
Because this is a bug-fix for net, may you clearly indicate that in the subject to help -net maintainers please? [PATCH net v2] Also, may you add a "Fixes" tag as well as it is for -net ? I guess it should be: Fixes: 3df523ab582c ("mptcp: Add ADD_ADDR handling") T

[PATCH bpf v2] bpf: fix unused-var without NETDEVICES

2020-06-03 Thread Matthieu Baerts
is to remove #ifdef CONFIG_NETDEVICES from net/core/filter.c and rely on sock_bindtoindex() returning ENOPROTOOPT in the extreme case of oddly configured kernels. Fixes: 70c58997c1e8 ("bpf: Allow SO_BINDTODEVICE opt in bpf_setsockopt") Suggested-by: Alexei Starovoitov Signed-off-by:

Re: [PATCH bpf] bpf: fix unused-var without NETDEVICES

2020-06-03 Thread Matthieu Baerts
Hi Alexei, On 03/06/2020 20:14, Alexei Starovoitov wrote: On Wed, Jun 03, 2020 at 11:12:01AM +0200, Matthieu Baerts wrote: Hi Ferenc, On 03/06/2020 10:56, Ferenc Fejes wrote: Matthieu Baerts ezt írta (időpont: 2020. jún. 3., Sze, 10:11): A recent commit added new variables only used if

Re: [PATCH bpf] bpf: fix unused-var without NETDEVICES

2020-06-03 Thread Matthieu Baerts
Hi Ferenc, On 03/06/2020 10:56, Ferenc Fejes wrote: Matthieu Baerts ezt írta (időpont: 2020. jún. 3., Sze, 10:11): A recent commit added new variables only used if CONFIG_NETDEVICES is set. Thank you for noticing and fixed this! A simple fix is to only declare these variables if the same

[PATCH bpf] bpf: fix unused-var without NETDEVICES

2020-06-03 Thread Matthieu Baerts
these variables in the related "case" section. Fixes: 70c58997c1e8 ("bpf: Allow SO_BINDTODEVICE opt in bpf_setsockopt") Signed-off-by: Matthieu Baerts --- Notes: This fix currently applies on net-next and bpf-next only. Except that net-next is now closed and -net w

[PATCH net] selftests:mptcp:pm: rm the right tmp file

2020-05-15 Thread Matthieu Baerts
"$err" is a variable pointing to a temp file. "$out" is not: only used as a local variable in "check()" and representing the output of a command line. Fixes: eedbc685321b (selftests: add PM netlink functional tests) Signed-off-by: Matthieu Baerts --- too

Re: [MPTCP] [PATCH 1/7] mptcp: use SHA256_BLOCK_SIZE, not SHA_MESSAGE_BYTES

2020-05-02 Thread Matthieu Baerts
to me, thank you for this! Reviewed-by: Matthieu Baerts -- Matthieu Baerts | R&D Engineer matthieu.bae...@tessares.net Tessares SA | Hybrid Access Solutions www.tessares.net 1 Avenue Jean Monnet, 1348 Louvain-la-Neuve, Belgium

[PATCH] selftests: settings: tests can be in subsubdirs

2019-10-22 Thread Matthieu Baerts
case a subsubdir has the same name as another one in another subdirectory. Fixes: 852c8cbf34d3 (selftests/kselftest/runner.sh: Add 45 second timeout per test) Signed-off-by: Matthieu Baerts --- tools/testing/selftests/kselftest/runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

Re: [PATCH 4.14] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-08-31 Thread Matthieu Baerts
ff.h:1406), just before the BUG_ON() somehow suggests to add a check before using it, what Tim did. In master, this code path causing the issue will not be taken because the implementation of tcp_rtx_queue_tail() is different: tcp_fragment() → tcp_rtx_queue_tail() → tcp_write_queue_prev() →

Re: [PATCH 4.14 04/33] tcp: be more careful in tcp_fragment()

2019-08-20 Thread Matthieu Baerts
) > Signed-off-by: Eric Dumazet > Reported-by: Andrew Prout > Tested-by: Andrew Prout > Tested-by: Jonathan Lemon > Tested-by: Michal Kubecek > Acked-by: Neal Cardwell > Acked-by: Yuchung Cheng > Acked-by: Christoph Paasch > Cc: Jonathan Looney > S