crypto: hisilicon/zip - add zip comp high perf mode configuration
authorChenghai Huang <huangchenghai2@huawei.com>
Fri, 24 Nov 2023 05:49:24 +0000 (13:49 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Dec 2023 10:03:26 +0000 (18:03 +0800)
commita9864bae1806499ebf3757a9e71dddde5b9c48c6
tree31484a59afaddd92ff3f23ac02c1a6a8f7eddb05
parentaaa03fdb56c781db4a4831dd5d6ec8817918c726
crypto: hisilicon/zip - add zip comp high perf mode configuration

To meet specific application scenarios, the function of switching between
the high performance mode and the high compression mode is added.

Use the perf_mode=0/1 configuration to set the compression high perf mode,
0(default, high compression mode), 1(high performance mode). These two
modes only apply to the compression direction and are compatible with
software algorithm in both directions.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_main.c