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=1796281241; b=iknDUNO9olkfNGfnttfzIeyDeIakc2jxXwT1hBmnSsMJ0DNUC+cqMsHOrBUWp2s/cZrD V9bJBgJXs+GvhoOlxw+mWBE6iRirbFJhbIjDU18BEhoqa5qjH1YE0fbMksU4Y6y8WHXXq oG62ipRWvnjy0pyoYgG73dvHVUMbKjj03DPXMFQUXoGpUJsr0LvrRdZ4WzUSHPw9U4NVV fZpfAum32sFOtA+2znRFcq3cCgZ9LHm1SDfjF7NdjYMqJV73P9ZpvOd08v1JWthj0/rC2 K1JaEW6HPmYJnskp2jMCmA8gGH7eYDLwvvCpxNA1GJ96NTOWJ1mUAsQV2iQJsNVSNyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796281241; h=Received:DKIM-Signature:From:To:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=BCRzqyR35cnUV39CDqY7T5t3ZORC5dHXz1b4ebN1vJs=; b=2KgyABEx8i+1Bvu6zyQ5tcs34jQnqT3nEYx7rU56fekV5iVdl6XgxN9W+Q1jIP57pyp+ zgF9Phy/3W/uzBCAye+klZq5iHUGU397aINVtlBn7d97vbd2CgCjJuZ8+p6SbeID8O/rF Eo17z4OnkM6dBodEd6jgigbZhjR2PHNfdkGQv7x7u3OqZm4f2qXC8Gp+umiIecvX35ojM FnXLTP3GOf+UEsz5bjwW3GeTTNJPxr6BHV+C2lOhey/X0hjS/703NSsKDr4rXqDMv77jF UfNlNCzVBNcD3DkwjliNgmIxb1OXJyjx7y3rtrLv8iqHuSQmHbz5mXvgt2ecClW3nVw== 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=NgnTLHmM; 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 A42D5606A333 for ; Thu, 3 Dec 2026 07:00:41 +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=NgnTLHmM Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A98E1F000C1 for ; Thu, 3 Dec 2026 07:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796281241; bh=BCRzqyR35cnUV39CDqY7T5t3ZORC5dHXz1b4ebN1vJs=; h=From:To:Subject:Date; b=NgnTLHmM8T1cynvj0WwRlItu316QmAOM2eDp1E/q8kVc8GmUkUpLtFNM/ghJ70DIa pRgnNS4VS3wcdJ5axGeYrQTMbH4nwkJC6b88eAv4DiT0XC0t8sCPjp+gg/pEqZyfFz AWSCynosEFnVIrHbDxoy6BluAhDoBamsKA5jMEcnRAwd+OfSgvysE19ctmUCNnBYJX Vqd0IrKu+/+9rlgWSwK6dJ+h5UyNSAJp43C/x2Ewlj75MUKOFROVvDgLoI0NtUjRtB AJmjtZoikOVG3obiaOGPZg5EYr/NO8dxBd7TKFTCYPdRBafA7Q6HDhn/BuEow4DJvQ Y8ovSld90oUrg== From: Geliang Tang To: mptcp@lists.linux.dev Subject: [PATCH mptcp-next v10 0/4] prepare interfaces for kTLS and sockmap support Date: Thu, 3 Dec 2026 15:00:28 +0800 Message-ID: X-Mailer: git-send-email 2.55.0 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: 8bit From: Geliang Tang v10: - patch 1, clear app_limited flag in __subflow_push_pending. v9: - Move SIOCINQ patches out of this set. - patch 1, add app_limited flag in struct mptcp_sock, call tcp_rate_check_app_limited in __subflow_push_pending instead of mptcp_sendmsg. - https://patchwork.kernel.org/project/mptcp/cover/cover.1796269554.git.tanggeliang@kylinos.cn/ v8: - patch 1: change mptcp_inq_hint() to maintain TCP semantics by adding 1 to hint_val when RCV_SHUTDOWN is set or sk_state is TCP_CLOSE, matching TCP behavior where FIN consumes a sequence number. - patch 2: update the test. - patches 3-7: no changes. - https://patchwork.kernel.org/project/mptcp/cover/cover.1794826541.git.geliang@kernel.org/ v7: - patch 1: add 1 to hint_val when RCV_SHUTDOWN is set to include the FIN byte, matching the previous ack_seq - map_seq behavior. Simplify the EOF condition accordingly. - patch 2: replace poll()-based check with a wait_for_remote_key() helper that polls MPTCP_INFO until MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED is set, ensuring the third ACK has been processed before checking SIOCINQ. Add SOL_MPTCP fallback definition and handle ENOPROTOOPT/EOPNOTSUPP for TCP or fallback sockets. - patches 3-7: no changes. - https://patchwork.kernel.org/project/mptcp/cover/cover.1794053683.git.tanggeliang@kylinos.cn/ v6: - patch 2: add Fixes tag, and use '-net' prefix. - patch 3: remove poll() call, check SIOCINQ directly after accept(). - patch 6: add READ_ONCE() for msk->flags and msk->cb_flags reads in mptcp_rate_check_app_limited() to annotate intentionally racy accesses. - update commit logs. - https://patchwork.kernel.org/project/mptcp/cover/cover.1793860134.git.tanggeliang@kylinos.cn/ v5: - patch 2: new patch - rewrite mptcp_inq_hint() to use mptcp_data_avail() instead of ack_seq - map_seq, completely avoiding TFO overflow issues. - patch 3: new patch - add TFO SIOCINQ overflow detection in mptcp_connect test to catch INT_MAX returns on TFO connections. - patch 4: mptcp_inq() now returns INT_MAX instead of 0 when avail >= INT_MAX. Removed mptcp_inq_hint() changes (moved to patch 2). - patch 6: replace mptcp_rtx_head() check with MPTCP_WORK_RTX and MPTCP_RETRANSMIT flag checks in mptcp_rate_check_app_limited() to properly detect pending retransmissions without data race issues. - https://patchwork.kernel.org/project/mptcp/cover/cover.1793676064.git.tanggeliang@kylinos.cn/ v4: - patch 2: fix mptcp_inq_hint() to return 0 instead of INT_MAX on passive TFO overflow (ack_seq - map_seq >= INT_MAX). - patch 4: add mptcp_rtx_head(sk) to the early-return check in mptcp_rate_check_app_limited() so pending retransmissions also prevent false app-limited marking. - patch 5: update comment message. - https://patchwork.kernel.org/project/mptcp/cover/cover.1793588257.git.tanggeliang@kylinos.cn/ v3: - patch 2: drop DATA_FIN subtraction in mptcp_inq(), remove the intermediate 'answ' variable and return (unsigned int)avail directly. Update commit message accordingly. - https://patchwork.kernel.org/project/mptcp/cover/cover.1793324316.git.tanggeliang@kylinos.cn/ v2: - drop the patch "prevent dummy DATA_FIN on RST in fallback mode". - keep mptcp_inq_hint in mptcp_ioctl unchanged. - use mptcp_data_avail in mptcp_inq. - add msk_owned_by_me check in mptcp_sendmsg_locked. - https://patchwork.kernel.org/project/mptcp/cover/cover.1793258749.git.tanggeliang@kylinos.cn/ v1: - https://patchwork.kernel.org/project/mptcp/cover/cover.1792999988.git.tanggeliang@kylinos.cn/ This series was previously posted as part of "Reduce the differences between TCP and MPTCP for TLS usage" v15. It creates the mptcp_inq() and mptcp_sendmsg_locked() interfaces that are required for the upcoming MPTCP kTLS and MPTCP sockmap implementations. The series has been rebased and no longer depends on Paolo's CB layout refactoring patches (mptcp: drop the mptcp_ooo_try_coalesce() helper, mptcp: drop the cant_coalesce CB field, mptcp: remove CB offset field, mptcp: sync mptcp skb cb layout with tcp one, mptcp: defer read_sock cleanup to mptcp_worker). Those patches are more complex and will be sent in a separate series. Gang Yan (1): mptcp: update mptcp_check_readable Geliang Tang (3): mptcp: track app-limited state in mptcp_sendmsg selftests: mptcp: sockopt: check app_limited mptcp: add sendmsg_locked to proto_ops net/mptcp/protocol.c | 51 ++++++++++++++++--- net/mptcp/protocol.h | 3 +- .../selftests/net/mptcp/mptcp_sockopt.c | 7 +++ 3 files changed, 53 insertions(+), 8 deletions(-) -- 2.55.0