From: Geliang Tang <geliang@kernel.org>
To: mptcp@lists.linux.dev
Cc: Geliang Tang <tanggeliang@kylinos.cn>
Subject: [PATCH mptcp-next 0/3] add tcp_recv_should_stop helper
Date: Sat, 13 Dec 2025 14:39:47 +0800 [thread overview]
Message-ID: <cover.1765607485.git.tanggeliang@kylinos.cn> (raw)
From: Geliang Tang <tanggeliang@kylinos.cn>
While developing MPTCP splice_read, Paolo suggested adding a new helper,
tcp_recv_should_stop, to reduce code duplication. This patchset implements
it for use in both MPTCP and TLS.
Based on an earlier version and following Mat's feedback, the sock_error()
check has been moved out of tcp_recv_should_stop(). Also use this helper in
TLS and TCP-BPF.
Geliang Tang (3):
tcp: add recv_should_stop helper
mptcp: use recv_should_stop helper
tls: use recv_should_stop helper
include/net/tcp.h | 23 ++++++++++++++++++
net/ipv4/tcp.c | 58 +++++++++-----------------------------------
net/ipv4/tcp_bpf.c | 22 ++++-------------
net/mptcp/protocol.c | 52 +++++++++------------------------------
net/tls/tls_sw.c | 18 +++++---------
5 files changed, 56 insertions(+), 117 deletions(-)
--
2.51.0
next reply other threads:[~2025-12-13 6:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-13 6:39 Geliang Tang [this message]
2025-12-13 6:39 ` [PATCH mptcp-next 1/3] tcp: add recv_should_stop helper Geliang Tang
2025-12-13 6:39 ` [PATCH mptcp-next 2/3] mptcp: use " Geliang Tang
2025-12-13 6:39 ` [PATCH mptcp-next 3/3] tls: " Geliang Tang
2025-12-13 7:57 ` [PATCH mptcp-next 0/3] add tcp_recv_should_stop helper 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.1765607485.git.tanggeliang@kylinos.cn \
--to=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=tanggeliang@kylinos.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox