crypto: hisilicon - QM memory management optimization
authorWeili Qian <qianweili@huawei.com>
Sat, 9 May 2020 09:44:02 +0000 (17:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2020 06:15:03 +0000 (16:15 +1000)
commit5308f6600a393ee848ed9d9f77b167aa6b202e9c
treeb2289a5668f2577275afaf4f74bff42c4831912c
parentd9701f8d9b12903bf212f542235659477024a43f
crypto: hisilicon - QM memory management optimization

Put all the code for the memory allocation into the QM initialization
process. Before, The qp memory was allocated when the qp was created,
and released when the qp was released, It is now changed to allocate
all the qp memory once.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/qm.h