Skip to content

Commit

Permalink
QATAPP-28529: fix minmatch bug
Browse files Browse the repository at this point in the history
Change-Id: I8b1fd8379dbb187921c95709158223e48aecb813
  • Loading branch information
embg authored and cfzhu committed Mar 24, 2023
1 parent 2879617 commit 29b323d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/qzstd.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@ int compressFile(int in_file, int out_file)
* should be 3. if mini match is 3, then LZ4MINMATCH should be 2*/
LZ4MINMATCH = g_sess_params.lz4s_mini_match == 4 ? 3 : 2;

/* Align zstd minmatch to the QAT minmatch */
ZSTD_CCtx_setParameter(
zc, ZSTD_c_minMatch,
g_sess_params.lz4s_mini_match >= 4 ? 4 : 3
);

//setup session
int ret = qzInit(&qzstd_g_sess, g_sess_params.common_params.sw_backup);
if (ret != QZ_OK && ret != QZ_DUPLICATE) {
Expand Down

0 comments on commit 29b323d

Please sign in to comment.