Re: [PATCH v3 1/2] crypto: engine - support for parallel requests

From: Herbert Xu
Date: Thu Feb 13 2020 - 01:18:24 EST


On Fri, Feb 07, 2020 at 02:36:13PM +0200, Iuliana Prodan wrote:
>
> +start_request:
> + /* If hardware is busy, do not send any request */
> + if (engine->can_enqueue_more) {
> + if (!engine->can_enqueue_more(engine))
> + goto out;

Instead of a driver callback I'd rather the driver called into
the engine telling it to stop/start, similar to how net drivers
work.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt