From: Matthieu Baerts <matttbe@kernel.org>
To: Davide Caratti <dcaratti@redhat.com>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next] mptcp: use "middlebox interference" for MP_TCPRST in case map_valid is false
Date: Thu, 10 Oct 2024 12:21:04 +0200 [thread overview]
Message-ID: <0e99895c-2336-40ce-95cf-b9eddf6dbf7f@kernel.org> (raw)
In-Reply-To: <4b2cee91613e597a172b46bb0d9d3143053c52da.1728408247.git.dcaratti@redhat.com>
Hi Davide,
On 08/10/2024 19:31, Davide Caratti wrote:
> RFC8684 suggests use of "Middlebox interference (code 0x06)" in case of
> MPJ subflow that carries data at TCP level with no DSS sub-option. This
> is generally the case when mpext is NULL or mpext->use_map is 0: use a
> dedicated value of 'mapping_status' and use it before closing the socket
> in subflow_check_data_avail().
Thank you!
By chance, do you already have a packetdrill test verifying this? (I
guess one similar to the one I recently added, but with a new subflow?)
> Link: https://github.com/multipath-tcp/mptcp_net-next/issues/518#issuecomment-2389156143
(I think what's after # is not needed: if that's OK, I can strip that
when applying the patch)
> Signed-off-by: Davide Caratti <dcaratti@redhat.com>
> ---
> net/mptcp/subflow.c | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
>
> diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> index 61482f8b425b..77da7a33598a 100644
> --- a/net/mptcp/subflow.c
> +++ b/net/mptcp/subflow.c
> @@ -960,7 +960,8 @@ enum mapping_status {
> MAPPING_EMPTY,
> MAPPING_DATA_FIN,
> MAPPING_DUMMY,
> - MAPPING_BAD_CSUM
> + MAPPING_BAD_CSUM,
> + MAPPING_NODSS
> };
>
> static void dbg_bad_map(struct mptcp_subflow_context *subflow, u32 ssn)
> @@ -1118,7 +1119,7 @@ static enum mapping_status get_mapping_status(struct sock *ssk,
> }
>
> if (!subflow->map_valid)
> - return MAPPING_INVALID;
> + return MAPPING_NODSS;
This code looks strange when you read it:
if ("Invalid")
return "No DSS";
Just to be sure: do we need this new "No DSS" case, because "Invalid" is
used in other conditions? In other words, do all these MAPPING_INVALID
not all point to "middlebox interference" errors?
Or in subflow_check_data_avail(), can we not look at subflow->map_valid?
subflow->reset_reason = subflow->map_valid ? MPTCP_RST_EMPTCP :
MPTCP_RST_EMIDDLEBOX;
(It's just to be sure it is really needed to introduce a new status)
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2024-10-10 10:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 17:31 [PATCH mptcp-next] mptcp: use "middlebox interference" for MP_TCPRST in case map_valid is false Davide Caratti
2024-10-08 21:17 ` MPTCP CI
2024-10-08 22:43 ` MPTCP CI
2024-10-10 10:21 ` Matthieu Baerts [this message]
2024-10-14 15:08 ` Matthieu Baerts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e99895c-2336-40ce-95cf-b9eddf6dbf7f@kernel.org \
--to=matttbe@kernel.org \
--cc=dcaratti@redhat.com \
--cc=mptcp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox