Re: [PATCH] crypto: hisilicon/zip - add zip comp high perf configuration

From: huangchenghai
Date: Thu Nov 23 2023 - 06:07:01 EST



On Wed, Nov 22, 2023 at 05:56PM, Herbert Xu wrote:

On Tue, Nov 21, 2023 at 09:40:24PM +0800, Chenghai Huang wrote:
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).

Signed-off-by: Chenghai Huang <huangchenghai2@xxxxxxxxxx>
Is it still compatible with the software algorithm implementation
when in high performance mode, in both directions?

Cheers,

The high performance mode only improves the performance of the compression
direction, and it is compatible with the software algorithm implementation in
both directions.

The v2 patch will be sent for adding comments "These two modes only apply to
the compression direction." to the code and "crypto" prefix to the subject.

Thanks,
Chenghai