]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/sec - delete the flag CRYPTO_ALG_ALLOCATES_MEMORY
authorKai Ye <yekai13@huawei.com>
Fri, 13 May 2022 08:02:44 +0000 (16:02 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 May 2022 05:54:45 +0000 (13:54 +0800)
commitf84754c04a1a7f3b63a99067e4712cf02f7fbede
tree22611f4a45d4954ecfe1aab60d2e073f130d3f3f
parent557a95b065e0ca274130912ce6ba59e6d6c2f229
crypto: hisilicon/sec - delete the flag CRYPTO_ALG_ALLOCATES_MEMORY

Should not to uses the CRYPTO_ALG_ALLOCATES_MEMORY in SEC2. The SEC2
driver uses the pre-allocated buffers, including the src sgl pool, dst
sgl pool and other qp ctx resources. (e.g. IV buffer, mac buffer, key
buffer). The SEC2 driver doesn't allocate memory during request processing.
The driver only maps software sgl to allocated hardware sgl during I/O. So
here is fix it.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c