[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aG911t_b18z7QHe-@gondor.apana.org.au>
Date: Thu, 10 Jul 2025 20:12:06 +1200
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Ovidiu Panait <ovidiu.panait.oss@...il.com>
Cc: clabbe.montjoie@...il.com, davem@...emloft.net,
linux-crypto@...r.kernel.org, wens@...e.org,
jernej.skrabec@...il.com, samuel@...lland.org,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 00/10] crypto: sun8i-ce - implement request batching
On Thu, Jun 26, 2025 at 12:58:03PM +0300, Ovidiu Panait wrote:
> The Allwinner crypto engine can process multiple requests at a time,
> if they are chained together using the task descriptor's 'next' field.
> Having multiple requests processed in one go can reduce the number
> of interrupts generated and also improve throughput.
I think we should phase out the batching code in crypto_engine
as it doesn't really work that well.
Instead of doing batching based on backlog, we should be letting
the user push this. For example, IPsec can hook into GSO and get
64K of data each time. Similarly for block encryption, unit sizes
can be much greater than 4K.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists