From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next v12 1/4] mptcp: track app-limited state in mptcp_sendmsg
Date: Sat, 5 Dec 2026 15:16:38 +0100 [thread overview]
Message-ID: <6effbd75-e6c8-413b-92aa-a9f773225889@kernel.org> (raw)
In-Reply-To: <605d991d94090eda7a72b085b85cacfd76ec7c26.1796455402.git.tanggeliang@kylinos.cn>
Hi Geliang,
On 05/12/2026 08:25, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> MPTCP sends bypass tcp_sendmsg(), so subflows never get the
> application-limited marking that rate estimators like BBR rely on.
>
> Add mptcp_rate_check_app_limited() to check the MPTCP-level conditions
> (write_seq == snd_nxt, no pending dfrags, no pending retransmission or
> recovery) at sendmsg entry. The decision is carried by a stack-local
> one-shot bool through struct mptcp_sendmsg_info, and each subflow's
> new check_app_limited flag records whether its transmit queue is
> drained. mptcp_sendmsg_frag() consumes both on the locked subflow,
> calls tcp_rate_check_app_limited() and clears the per-subflow flag.
>
> The local bool is reset before waiting for memory, and every
> asynchronous push and retransmission path passes app_limited=false,
> so only a synchronous push in the same sendmsg can act on the decision.
> The per-subflow flags are fully refreshed by each successful
> mptcp_rate_check_app_limited() run, so any flag left behind by an
> unconsumed sendmsg is inert.
This looks quite complex. I'm thinking about another alternative, way
smaller. If it works, I can send it in my huge pile of fixes when I can
if that's OK for you.
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2026-12-05 14:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 7:25 [PATCH mptcp-next v12 0/4] prepare interfaces for kTLS and sockmap support Geliang Tang
2026-12-05 7:25 ` [PATCH mptcp-next v12 1/4] mptcp: track app-limited state in mptcp_sendmsg Geliang Tang
2026-12-05 7:47 ` sashiko-bot
2026-12-05 14:16 ` Matthieu Baerts [this message]
2026-12-05 7:25 ` [PATCH mptcp-next v12 2/4] selftests: mptcp: sockopt: check app_limited Geliang Tang
2026-12-05 7:42 ` sashiko-bot
2026-12-05 7:25 ` [PATCH mptcp-next v12 3/4] mptcp: add sendmsg_locked to proto_ops Geliang Tang
2026-12-05 7:25 ` [PATCH mptcp-next v12 4/4] mptcp: update mptcp_check_readable Geliang Tang
2026-12-05 8:49 ` [PATCH mptcp-next v12 0/4] prepare interfaces for kTLS and sockmap support MPTCP CI
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=6effbd75-e6c8-413b-92aa-a9f773225889@kernel.org \
--to=matttbe@kernel.org \
--cc=geliang@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.