From: sashiko-bot@kernel.org
To: "Lin Lei" <llleigoing@gmail.com>, "MPTCP Linux" <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-net] mptcp: check app-limited status on subflow sends
Date: Fri, 04 Dec 2026 02:24:30 +0000 [thread overview]
Message-ID: <sashiko-outbox-248969@kernel.org> (raw)
In-Reply-To: <20261204020611.3657002-1-llleigoing@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mptcp: mptcp_sendmsg_frag() falsely marks rwnd-limited sends
app-limited
--
commit 3acd5a37eb2a86bad7ee6c03d87d8982b48df0ea
Author: Lin Lei <llleigoing@gmail.com>
mptcp: check app-limited status on subflow sends
This commit adds a tcp_rate_check_app_limited() call in
mptcp_sendmsg_frag() before appending payload to a subflow skb so that
sparse MPTCP writes mark the subflow as application-limited.
> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
> index 550e7aed42a86..f3950d55c3b3d 100644
> --- a/net/mptcp/protocol.c
> +++ b/net/mptcp/protocol.c
> @@ -1536,6 +1536,8 @@ static int mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk,
> }
> copy = avail;
>
> + tcp_rate_check_app_limited(ssk);
[Severity: Medium]
Can calling tcp_rate_check_app_limited() unconditionally here falsely mark
receive-window-limited bulk transfers as app-limited?
Unlike plain TCP, MPTCP buffers unsent bulk data in msk->rtx_queue and
clamps subflow enqueueing to msk->wnd_end in mptcp_check_allowed_size().
When rwnd < cwnd, the subflow write queue drains to tp->write_seq ==
tp->snd_nxt even though unsent data remains in msk->rtx_queue.
When an ACK advances msk->wnd_end, ack_update_msk() -> __mptcp_check_push()
pushes queued data into mptcp_sendmsg_frag(). Because the subflow write
queue is empty and tcp_packets_in_flight(tp) < tcp_snd_cwnd(tp),
tcp_rate_check_app_limited(ssk) re-arms tp->app_limited on every ACK.
Under BBR, those false rs->is_app_limited samples prevent
bbr_check_full_bw_reached() from exiting BBR_STARTUP and prevent
bbr_update_bw() from lowering the max bandwidth filter when link capacity
drops.
Should this check account for unsent data queued in msk->rtx_queue before
marking the subflow app-limited?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204020611.3657002-1-llleigoing@gmail.com?part=1
next prev parent reply other threads:[~2026-12-04 2:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 2:06 [PATCH mptcp-net] mptcp: check app-limited status on subflow sends Lin Lei
2026-12-04 2:24 ` sashiko-bot [this message]
2026-12-04 3:27 ` MPTCP CI
2026-12-04 9:08 ` gang.yan
2026-12-04 10:43 ` Lin Lei
2026-12-04 11:12 ` Matthieu Baerts
2026-12-04 17:55 ` 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=sashiko-outbox-248969@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=llleigoing@gmail.com \
--cc=mptcp@lists.linux.dev \
--cc=sashiko-reviews@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.