tls/device: Support MSG_SPLICE_PAGES
authorDavid Howells <dhowells@redhat.com>
Wed, 7 Jun 2023 18:19:19 +0000 (19:19 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Jun 2023 02:40:31 +0000 (19:40 -0700)
commit24763c9c09804db9b178f41358034144b87a937a
tree8da7849191fa2f4f21a92ee3321bcb9573c3889b
parent45e5be844ab6b2845b6d2935b61278c5ecae7d38
tls/device: Support MSG_SPLICE_PAGES

Make TLS's device 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>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
cc: Chuck Lever <chuck.lever@oracle.com>
cc: Boris Pismenny <borisp@nvidia.com>
cc: John Fastabend <john.fastabend@gmail.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_device.c