From: Matthieu Baerts <matttbe@kernel.org>
To: Shardul Bankar <shardulsb08@gmail.com>, mptcp@lists.linux.dev
Cc: martineau@kernel.org, geliang@kernel.org, pabeni@redhat.com,
janak@mpiric.us, kalpan.jani@mpiricsoftware.com,
Shardul Bankar <shardul.b@mpiricsoftware.com>
Subject: Re: [PATCH v3 1/2] mptcp: add per-event MIB counters for MPTCP_RST_EMPTCP resets
Date: Wed, 27 May 2026 16:50:33 +1000 [thread overview]
Message-ID: <802598b4-1765-4cce-a29f-3cdbb3abfc26@kernel.org> (raw)
In-Reply-To: <20260512103331.1934343-2-shardul.b@mpiricsoftware.com>
Hi Shardul,
On 12/05/2026 20:33, Shardul Bankar wrote:
> MPTCP_RST_EMPTCP (reset reason 1) is used as a catch-all for several
> distinct error conditions across subflow setup, authentication, and
> data-path validation. The existing MPRstTx/MPRstRx counters only
> track aggregate reset volume, making it difficult to diagnose which
> code path is triggering subflow resets in production.
(...)
> diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> index d562e149606f6..6fce3f431667c 100644
> --- a/net/mptcp/subflow.c
> +++ b/net/mptcp/subflow.c
> @@ -160,6 +160,7 @@ static int subflow_check_req(struct request_sock *req,
> * TCP option space.
> */
> if (rcu_access_pointer(tcp_sk(sk_listener)->md5sig_info)) {
> + MPTCP_INC_STATS(sock_net(sk_listener), MPTCP_MIB_MD5SIGRESET);
> subflow_add_reset_reason(skb, MPTCP_RST_EMPTCP);
> return -EINVAL;
> }
In the v1, you also had another counter added in this helper, for the
MPJOIN case with !subflow_req->msk: I thought that JOINNOTOKEN was
always sent in this case. I just noticed another possible error that
could come from the PM side if there is no local_id. I don't know if we
should cover this case, but maybe "safer" to?
Maybe adding a MPJoinNoIdFound and use it in subflow_token_join_request,
similar to MPJoinNoTokenFound?
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2026-05-27 6:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 10:33 [PATCH v3 0/2] mptcp: per-event MIB counters for MPTCP_RST_EMPTCP Shardul Bankar
2026-05-12 10:33 ` [PATCH v3 1/2] mptcp: add per-event MIB counters for MPTCP_RST_EMPTCP resets Shardul Bankar
2026-05-27 6:50 ` Matthieu Baerts [this message]
2026-05-12 10:33 ` [PATCH v3 2/2] selftests: mptcp: extend chk_rst_nr to validate per-event RST counters Shardul Bankar
2026-05-27 6:24 ` Matthieu Baerts
2026-05-12 11:47 ` [PATCH v3 0/2] mptcp: per-event MIB counters for MPTCP_RST_EMPTCP MPTCP CI
2026-05-27 7:43 ` 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=802598b4-1765-4cce-a29f-3cdbb3abfc26@kernel.org \
--to=matttbe@kernel.org \
--cc=geliang@kernel.org \
--cc=janak@mpiric.us \
--cc=kalpan.jani@mpiricsoftware.com \
--cc=martineau@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=shardul.b@mpiricsoftware.com \
--cc=shardulsb08@gmail.com \
/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