• Zaibo Xu's avatar
    crypto: hisilicon - Update QP resources of SEC V2 · 7c7d902a
    Zaibo Xu authored
    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: default avatarZaibo Xu <xuzaibo@huawei.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    7c7d902a
sec.h 3.29 KB