Re: [PATCH v5 02/12] crypto: acomp - Define new interfaces for compress/decompress batching.
From: Herbert Xu
Date: Sat Dec 28 2024 - 06:47:16 EST
On Fri, Dec 20, 2024 at 10:31:09PM -0800, Kanchana P Sridhar wrote:
> This commit adds get_batch_size(), batch_compress() and batch_decompress()
> interfaces to:
First of all we don't need a batch compress/decompress interface
because the whole point of request chaining is to supply the data
in batches.
I'm also against having a get_batch_size because the user should
be supplying as much data as they're comfortable with. In other
words if the user is happy to give us 8 requests for iaa then it
should be happy to give us 8 requests for every implementation.
The request chaining interface should be such that processing
8 requests is always better than doing 1 request at a time as
the cost is amortised.
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt