]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: implement .splice_read
authorGeliang Tang <tanggeliang@kylinos.cn>
Fri, 30 Jan 2026 19:24:27 +0000 (20:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 02:15:32 +0000 (18:15 -0800)
commit22f3bd9bf8e850e2b365ad65916ef5aadc79bb61
tree31ddced4b84169ca4369d7e5d553dc34e3f301d8
parent2d85088d467ffbfa4377881be050937e3f0304bc
mptcp: implement .splice_read

This patch implements .splice_read interface of mptcp struct proto_ops
as mptcp_splice_read() with reference to tcp_splice_read().

Corresponding to __tcp_splice_read(), __mptcp_splice_read() is defined,
invoking mptcp_read_sock() instead of tcp_read_sock().

mptcp_splice_read() is almost the same as tcp_splice_read(), except for
sock_rps_record_flow().

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260130-net-next-mptcp-splice-v2-4-31332ba70d7f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c