Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: hisilicon/zip - add lz4 and lz77_only to algorithm sysfs

The current hisilicon zip supports the new algorithms lz77_only and
lz4. To enable user space to recognize the new algorithm support,
add lz77_only and lz4 to the sysfs. Users can now use the new
algorithms through uacce.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Chenghai Huang and committed by
Herbert Xu
cf79ed6a 35c5097f

+7
+7
drivers/crypto/hisilicon/zip/zip_main.c
··· 80 80 #define HZIP_ALG_GZIP_BIT GENMASK(3, 2) 81 81 #define HZIP_ALG_DEFLATE_BIT GENMASK(5, 4) 82 82 #define HZIP_ALG_LZ77_BIT GENMASK(7, 6) 83 + #define HZIP_ALG_LZ4_BIT GENMASK(9, 8) 83 84 84 85 #define HZIP_BUF_SIZE 22 85 86 #define HZIP_SQE_MASK_OFFSET 64 ··· 151 150 }, { 152 151 .alg_msk = HZIP_ALG_LZ77_BIT, 153 152 .alg = "lz77_zstd\n", 153 + }, { 154 + .alg_msk = HZIP_ALG_LZ77_BIT, 155 + .alg = "lz77_only\n", 156 + }, { 157 + .alg_msk = HZIP_ALG_LZ4_BIT, 158 + .alg = "lz4\n", 154 159 }, 155 160 }; 156 161