Skip to content

Commit d091447

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - re-enable registration of algorithms
Re-enable the registration of algorithms after fixes to (1) use pre-allocated buffers in the datapath and (2) support the CRYPTO_TFM_REQ_MAY_BACKLOG flag. This reverts commit 8893d27. Cc: stable@vger.kernel.org Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Marco Chiappero <marco.chiappero@intel.com> Reviewed-by: Adam Guerin <adam.guerin@intel.com> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 8fb203c commit d091447

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

drivers/crypto/qat/qat_4xxx/adf_drv.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev)
7575
if (ret)
7676
goto err;
7777

78-
/* Temporarily set the number of crypto instances to zero to avoid
79-
* registering the crypto algorithms.
80-
* This will be removed when the algorithms will support the
81-
* CRYPTO_TFM_REQ_MAY_BACKLOG flag
82-
*/
83-
instances = 0;
84-
8578
for (i = 0; i < instances; i++) {
8679
val = i;
8780
bank = i * 2;

drivers/crypto/qat/qat_common/qat_crypto.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ int qat_crypto_dev_config(struct adf_accel_dev *accel_dev)
161161
if (ret)
162162
goto err;
163163

164-
/* Temporarily set the number of crypto instances to zero to avoid
165-
* registering the crypto algorithms.
166-
* This will be removed when the algorithms will support the
167-
* CRYPTO_TFM_REQ_MAY_BACKLOG flag
168-
*/
169-
instances = 0;
170-
171164
for (i = 0; i < instances; i++) {
172165
val = i;
173166
snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i);

0 commit comments

Comments
 (0)