• David Howells's avatar
    tls/device: Convert tls_device_sendpage() to use MSG_SPLICE_PAGES · 3dc8976c
    David Howells authored
    Convert tls_device_sendpage() to use sendmsg() with MSG_SPLICE_PAGES rather
    than directly splicing in the pages itself.  With that, the tls_iter_offset
    union is no longer necessary and can be replaced with an iov_iter pointer
    and the zc_page argument to tls_push_data() can also be removed.
    
    This allows ->sendpage() to be replaced by something that can handle
    multiple multipage folios in a single transaction.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Acked-by: default avatarJakub 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: default avatarJakub Kicinski <kuba@kernel.org>
    3dc8976c
tls_device.c 38.3 KB