Message ID | 1545465105-133138-1-git-send-email-wangzhou1@hisilicon.com |
---|---|
Headers | show |
Series | crypto: hisilicon: Add HiSilicon QM and ZIP controller driver | expand |
On 2019/1/11 14:08, Herbert Xu wrote: > On Sat, Dec 22, 2018 at 03:51:44PM +0800, Zhou Wang wrote: >> >> +static struct crypto_alg hisi_zip_zlib = { >> + .cra_name = "zlib-deflate", >> + .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, >> + .cra_ctxsize = sizeof(struct hisi_zip_ctx), >> + .cra_priority = 300, >> + .cra_module = THIS_MODULE, >> + .cra_init = hisi_zip_alloc_comp_ctx, >> + .cra_exit = hisi_zip_free_comp_ctx, >> + .cra_u = { >> + .compress = { >> + .coa_compress = hisi_zip_compress, >> + .coa_decompress = hisi_zip_decompress >> + } >> + } >> +}; > > Please do not add any new implementations using the compress > interface. You should either use scomp or acomp depending on > whether your driver is synchronous or async. OK, current this driver only supports synchronous interface. Will fix it in v2. Thanks, Zhou > > Thanks, >
On Fri, Jan 18, 2019 at 03:55:05PM +0800, Zhou Wang wrote: > > However, another question is that seems other subsystems in kernel, > e.g. zswap still use crypto_alloc_comp. So we'd better register this > ZIP engine using both cryto_alloc_comp and scomp/acomp interface to > make it compatible with other subsystems? Existing users should switch over to acomp. We're not adding any more new algorithms to the legacy compress interface. Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt