Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 8893d27ffcaf6ec6267038a177cb87bcde4dd3de.

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>

authored by

Giovanni Cabiddu and committed by
Herbert Xu
d0914474 8fb203c6

-14
-7
drivers/crypto/qat/qat_4xxx/adf_drv.c
··· 75 75 if (ret) 76 76 goto err; 77 77 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 - 85 78 for (i = 0; i < instances; i++) { 86 79 val = i; 87 80 bank = i * 2;
-7
drivers/crypto/qat/qat_common/qat_crypto.c
··· 161 161 if (ret) 162 162 goto err; 163 163 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 - 171 164 for (i = 0; i < instances; i++) { 172 165 val = i; 173 166 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i);