]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon - Update QP resources of SEC V2
authorZaibo Xu <xuzaibo@huawei.com>
Sat, 11 Jan 2020 02:41:51 +0000 (10:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jan 2020 07:18:14 +0000 (15:18 +0800)
commitae70949e00a968712f0fd0946b5bf44ed58529ff
treec112c00c3653d41d2a5512952fabeb7679d124e0
parentadc9d0a3913496bc8fedead191664bee34927066
crypto: hisilicon - Update QP resources of SEC V2

1.Put resource including request and resource list into
  QP context structure to avoid allocate memory repeatedly.
2.Add max context queue number to void kcalloc large memory for QP context.
3.Remove the resource allocation operation.
4.Redefine resource allocation APIs to be shared by other algorithms.
5.Move resource allocation and free inner functions out of
  operations 'struct sec_req_op', and they are called directly.

Signed-off-by: Zaibo Xu <xuzaibo@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec.h
drivers/crypto/hisilicon/sec2/sec_crypto.c
drivers/crypto/hisilicon/sec2/sec_main.c