]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: preserve MSG_EOR semantics in sendmsg path
authorGang Yan <yangang@kylinos.cn>
Fri, 3 Apr 2026 11:29:28 +0000 (13:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Apr 2026 02:14:26 +0000 (19:14 -0700)
commit7fb2f5f964998819dcc8f5d38dcd8999a568c3ef
tree9e3136c520810ce0f8747845536906e0077e88f2
parent00d46be3c319029bdf5b4eb53bff8e47a8e7ddc4
mptcp: preserve MSG_EOR semantics in sendmsg path

Extend MPTCP's sendmsg handling to recognize and honor the MSG_EOR flag,
which marks the end of a record for application-level message boundaries.

Data fragments tagged with MSG_EOR are explicitly marked in the
mptcp_data_frag structure and skb context to prevent unintended
coalescing with subsequent data chunks. This ensures the intent of
applications using MSG_EOR is preserved across MPTCP subflows,
maintaining consistent message segmentation behavior.

Signed-off-by: Gang Yan <yangang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260403-net-next-mptcp-msg_eor-misc-v1-2-b0b33bea3fed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c
net/mptcp/protocol.h