kcm: Support MSG_SPLICE_PAGES
authorDavid Howells <dhowells@redhat.com>
Wed, 31 May 2023 11:04:21 +0000 (12:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 6 Jun 2023 03:51:56 +0000 (20:51 -0700)
commit2b03bcae66c7b29f151e51d3109dbe1e31272235
tree4d689af06ac3c23747c1eab54d3e875b65216fad
parent28cfea989d6f55c3d10608eba2a2bae609c5bf3e
kcm: Support MSG_SPLICE_PAGES

Make AF_KCM sendmsg() support MSG_SPLICE_PAGES.  This causes pages to be
spliced from the source iterator if possible.

This allows ->sendpage() to be replaced by something that can handle
multiple multipage folios in a single transaction.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Tom Herbert <tom@herbertland.com>
cc: Tom Herbert <tom@quantonium.net>
cc: Cong Wang <cong.wang@bytedance.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/kcm/kcmsock.c