All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geliang Tang <geliang@kernel.org>
To: mptcp@lists.linux.dev
Subject: [PATCH mptcp-next v12 0/4] prepare interfaces for kTLS and sockmap support
Date: Sat,  5 Dec 2026 15:25:24 +0800	[thread overview]
Message-ID: <cover.1796455402.git.tanggeliang@kylinos.cn> (raw)

From: Geliang Tang <tanggeliang@kylinos.cn>

v12:
 - patch 1, replace msk->app_limited with a one-shot local bool passed
   through __mptcp_push_pending(), async pushes pass false; add a
   per-subflow check_app_limited flag consumed in mptcp_sendmsg_frag();
   also check recovery state and send window space in
   mptcp_rate_check_app_limited().

v11:
 - patch 1, clear app_limited on sendmsg exit and in the wait_for_memory
   path instead of in __subflow_push_pending, so all subflows pushed
   within one sendmsg are marked; read MPTCP_RETRANSMIT under
   mptcp_data_lock; move app_limited to a separate u8 bitfield.
 - patch 2, guard the app_limited assertion with tcpi_delivery_rate
   instead of asserting tcpi_delivery_rate > 0.
 - https://patchwork.kernel.org/project/mptcp/cover/cover.1796308130.git.geliang@kernel.org/

v10:
 - patch 1, clear app_limited flag in __subflow_push_pending.
 - https://patchwork.kernel.org/project/mptcp/cover/cover.1796281059.git.tanggeliang@kylinos.cn/

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/pm.c                                |  2 +-
 net/mptcp/protocol.c                          | 89 +++++++++++++++----
 net/mptcp/protocol.h                          |  4 +-
 .../selftests/net/mptcp/mptcp_sockopt.c       |  5 ++
 4 files changed, 83 insertions(+), 17 deletions(-)

-- 
2.55.0


             reply	other threads:[~2026-12-05  7:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  7:25 Geliang Tang [this message]
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
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=cover.1796455402.git.tanggeliang@kylinos.cn \
    --to=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.