
From: Qinxin Xia <xiaqinxin@huawei.com> Support the algorithm 'lz4' in wd_comp Signed-off-by: Qinxin Xia <xiaqinxin@huawei.com> Signed-off-by: Qi Tao <taoqi10@huawei.com> --- wd_comp.c | 2 +- wd_util.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wd_comp.c b/wd_comp.c index 8e47a32f..58f6e451 100644 --- a/wd_comp.c +++ b/wd_comp.c @@ -27,7 +27,7 @@ #define cpu_to_be32(x) swap_byte(x) static const char *wd_comp_alg_name[WD_COMP_ALG_MAX] = { - "zlib", "gzip", "deflate", "lz77_zstd", "lz77_only" + "zlib", "gzip", "deflate", "lz77_zstd", "lz4", "lz77_only" }; struct wd_comp_sess { diff --git a/wd_util.c b/wd_util.c index ec8bd7c6..646346a0 100644 --- a/wd_util.c +++ b/wd_util.c @@ -107,6 +107,7 @@ static struct acc_alg_item alg_options[] = { {"gzip", "gzip"}, {"deflate", "deflate"}, {"lz77_zstd", "lz77_zstd"}, + {"lz4", "lz4"}, {"lz77_only", "lz77_only"}, {"hashagg", "hashagg"}, {"udma", "udma"}, -- 2.33.0