lkml.org 
[lkml]   [2019]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] crypto: hisilicon: Add HiSilicon ZIP accelerator support
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.

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

\
 
 \ /
  Last update: 2019-01-11 07:10    [W:0.092 / U:4.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site