diff options
author | Antoine Ténart <antoine.tenart@free-electrons.com> | 2017-12-14 17:26:57 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-12-22 12:03:35 +0300 |
commit | 8732b298fa1cd266d8962d45109ba5cfa4212f37 (patch) | |
tree | 9ef229cefbd9dcc40e3485631fde604f455a1c18 /drivers/crypto/inside-secure/safexcel.h | |
parent | 7f77f5a4fc0875e4fc1110e48d9a522a9e639d0e (diff) | |
download | linux-8732b298fa1cd266d8962d45109ba5cfa4212f37.tar.xz |
crypto: inside-secure - retry to proceed the request later on fail
The dequeueing function was putting back a request in the crypto queue
on failure (when not enough resources are available) which is not
perfect as the request will be handled much later. This patch updates
this logic by keeping a reference on the failed request to try
proceeding it later when enough resources are available.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel.h')
-rw-r--r-- | drivers/crypto/inside-secure/safexcel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.h b/drivers/crypto/inside-secure/safexcel.h index 0c47e792192d..d4955abf873b 100644 --- a/drivers/crypto/inside-secure/safexcel.h +++ b/drivers/crypto/inside-secure/safexcel.h @@ -499,6 +499,12 @@ struct safexcel_crypto_priv { /* The ring is currently handling at least one request */ bool busy; + + /* Store for current requests when bailing out of the dequeueing + * function when no enough resources are available. + */ + struct crypto_async_request *req; + struct crypto_async_request *backlog; } ring[EIP197_MAX_RINGS]; }; |