• David Howells's avatar
    crypto: af_alg/hash: Support MSG_SPLICE_PAGES · c662b043
    David Howells authored
    Make AF_ALG sendmsg() support MSG_SPLICE_PAGES in the hashing code.  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: default avatarDavid Howells <dhowells@redhat.com>
    cc: Herbert Xu <herbert@gondor.apana.org.au>
    cc: "David S. Miller" <davem@davemloft.net>
    cc: Eric Dumazet <edumazet@google.com>
    cc: Jakub Kicinski <kuba@kernel.org>
    cc: Paolo Abeni <pabeni@redhat.com>
    cc: Jens Axboe <axboe@kernel.dk>
    cc: Matthew Wilcox <willy@infradead.org>
    cc: linux-crypto@vger.kernel.org
    cc: netdev@vger.kernel.org
    Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    c662b043
algif_hash.c 10.6 KB