From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796520924; b=U8SmKrlhiX/cuXohtTdYdrGVL/pqcH6PlNBxXMn5LPXVEg5hKOH8xr7jeo6NVqeQFG17 C9Tc3CNxVC7UK0QyiwFumFa8YTbvyMqg/hgmRApkx/wVPtrPIdu8NuG4W329SvNocB8kg Yl3dUOhNHR+INQgcmdTeutNmMNnXbib2EcAA6I/FsmWqTvm1veECMCamOozKphrVUvXns AgzAQFAYliJu7EXvpWV/dS9wG9MOU6/4d83BewHuKIsSGOJl3H8HZcdw7HU5SHaZVUx9o HcX3kB4t9eedIscU+nfo9hzTE/iQNNk9dfurpZ4EWrC7gGBojZjfXS6tCY0xHRI+KNQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796520924; h=Received:DKIM-Signature:Message-ID:Subject:From:To:Cc:Date: In-Reply-To:References:Content-Type:User-Agent:MIME-Version: Content-Transfer-Encoding; bh=oEMn3tu/04qgLd8EnSnd/X+5RTWnYvWj7wov1mKHbAw=; b=DXS1eFOePdfY4kxQGKh/I6OEeEF5M1uH/mJuxZKzqn1ddCZZznsgxceA3npqifuIaPOE ZLrbX176AS+WZQ+yE1qp0p876LDrGmsCIaeQ9rTTExIXtAaQPuASvOMw2eq8lDLBsxcdB 0B99gQ6sBWSfxf+SgRSpREcyc3tgRITjO9em4FWZsEWmtn4rUOO/Vpqyk+/pP2nLBOZ3L qPMdclUPmk7EEYjot7Q/EBjeQ3oienmOBfIlNgxzbsJV72hwXWCRpokH+bs9GN3Z/dvDl ovZXj+o3Q6eEGZ3g23V+O+uvu1pUgSK3JIxZO91zU9vUywvYdvY/RvRPv2bAwOjpDjw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jPmyJRnx; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78ED2606A31F for ; Sun, 6 Dec 2026 01:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jPmyJRnx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B30D1F0092B; Sun, 6 Dec 2026 01:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796520924; bh=oEMn3tu/04qgLd8EnSnd/X+5RTWnYvWj7wov1mKHbAw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=jPmyJRnxHccSxEwnb8GLz8spwvEeuF4yL2Hokus6G21qzio0k5icgqw0W8VdfazM7 5PdgUUaF0biOM9DxvbhiLBakUmC9cKVvRN2E4mJLri1KzviypkeE9wgUb5YsPaAULa lXTxrsIWTfMwwvP3LkhQ2CcnXu4n7LtrVEms6EYg8PyeQDHWFOpv6XYDzY63gjLonO kXMEUtfEJLuQ0V/VyOPBgEw22a7Wi3+PfkrYf/7zX5lhXKgK00j6HCxxUdBcMefWKl Y530lLm/FfsXdXHeZwuRnH4oi6N/HRL/xgqc8AUccS0LSIkdOOCjhIytuIKu6iksdm Ar85q+xyF/hXw== Message-ID: Subject: Re: [PATCH mptcp-next v12 1/4] mptcp: track app-limited state in mptcp_sendmsg From: Geliang Tang To: Matthieu Baerts Cc: mptcp@lists.linux.dev Date: Sun, 06 Dec 2026 09:35:20 +0800 In-Reply-To: <6effbd75-e6c8-413b-92aa-a9f773225889@kernel.org> References: <605d991d94090eda7a72b085b85cacfd76ec7c26.1796455402.git.tanggeliang@kylinos.cn> <6effbd75-e6c8-413b-92aa-a9f773225889@kernel.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.56.2-10build1 X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Hi Matt, On Sat, 2026-12-05 at 15:16 +0100, Matthieu Baerts wrote: > Hi Geliang, > > On 05/12/2026 08:25, Geliang Tang wrote: > > From: Geliang Tang > > > > 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. Of course, no problem at all. Thank you very much for investing your time in my patch. Looking forward to your fix. Thanks, -Geliang > > Cheers, > Matt