crypto: qat - re-enable registration of algorithms
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Mon, 9 May 2022 13:34:17 +0000 (14:34 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 May 2022 05:49:18 +0000 (13:49 +0800)
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>
drivers/crypto/qat/qat_4xxx/adf_drv.c
drivers/crypto/qat/qat_common/qat_crypto.c

index fa4c350..a6c78b9 100644 (file)
@@ -75,13 +75,6 @@ static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev)
        if (ret)
                goto err;
 
-       /* Temporarily set the number of crypto instances to zero to avoid
-        * registering the crypto algorithms.
-        * This will be removed when the algorithms will support the
-        * CRYPTO_TFM_REQ_MAY_BACKLOG flag
-        */
-       instances = 0;
-
        for (i = 0; i < instances; i++) {
                val = i;
                bank = i * 2;
index 80d905e..9341d89 100644 (file)
@@ -161,13 +161,6 @@ int qat_crypto_dev_config(struct adf_accel_dev *accel_dev)
        if (ret)
                goto err;
 
-       /* Temporarily set the number of crypto instances to zero to avoid
-        * registering the crypto algorithms.
-        * This will be removed when the algorithms will support the
-        * CRYPTO_TFM_REQ_MAY_BACKLOG flag
-        */
-       instances = 0;
-
        for (i = 0; i < instances; i++) {
                val = i;
                snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i);