chelsio: Support MSG_SPLICE_PAGES
authorDavid Howells <dhowells@redhat.com>
Wed, 31 May 2023 11:00:07 +0000 (12:00 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 1 Jun 2023 11:41:36 +0000 (13:41 +0200)
commit116f7b361ebbb6095257c27da327e27000488214
tree3469feaf4895fb09bfd31020e19d381b0eed1cc1
parent735c9ee9a374769b78c716de3c19a6c9440ede85
chelsio: Support MSG_SPLICE_PAGES

Make Chelsio's TLS offload sendmsg() support MSG_SPLICE_PAGES, splicing in
pages from the source iterator if possible and copying the data in
otherwise.

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: Ayush Sawal <ayush.sawal@chelsio.com>
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: netdev@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c