]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: Declare MSG_SPLICE_PAGES internal sendmsg() flag
authorDavid Howells <dhowells@redhat.com>
Mon, 22 May 2023 12:11:10 +0000 (13:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:27 +0000 (17:10 +0100)
commit6bcc79a4e76072b89541a62eeb41e22b281a365f
tree39449b8f77a4162dfed0891596fe1a437a616b06
parent89b51e70e5e335ba5c00abad1bfd9d52acd8afce
net: Declare MSG_SPLICE_PAGES internal sendmsg() flag

[ Upstream commit b841b901c452d92610f739a36e54978453528876 ]

Declare MSG_SPLICE_PAGES, an internal sendmsg() flag, that hints to a
network protocol that it should splice pages from the source iterator
rather than copying the data if it can.  This flag is added to a list that
is cleared by sendmsg syscalls on entry.

This is intended as a replacement for the ->sendpage() op, allowing a way
to splice in several multipage folios in one go.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: a0002127cd74 ("udp: move udp->no_check6_tx to udp->udp_flags")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/socket.h
io_uring/net.c
net/socket.c