]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Intel QAT 1.7 compatibility
authorVolker Mauel <volkermauel@gmail.com>
Thu, 7 Sep 2023 21:38:17 +0000 (23:38 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 21:38:17 +0000 (14:38 -0700)
Based on the intel QAT samples which are bundled in the 1.x drivers,
this is the preferred approach since api version 1.6.  See:

https://www.intel.de/content/www/de/de/download/19734/intel-quickassist-technology-driver-for-linux-hw-version-1-x.html?

Reviewed-by: Weigang Li <weigang.li@intel.com>
Signed-off-by: Volker Mauel <volkermauel@gmail.com>
Closes #15190

module/os/linux/zfs/qat_compress.c

index 07d5d34dae338816e4b17d735b77238fc3d509c4..6d0595dd5f7604fc14fcddaf4bd80b1fccc1fbe3 100644 (file)
@@ -193,7 +193,9 @@ qat_dc_init(void)
                sd.huffType = CPA_DC_HT_FULL_DYNAMIC;
                sd.sessDirection = CPA_DC_DIR_COMBINED;
                sd.sessState = CPA_DC_STATELESS;
+#if (CPA_DC_API_VERSION_NUM_MAJOR == 1 && CPA_DC_API_VERSION_NUM_MINOR < 6)
                sd.deflateWindowSize = 7;
+#endif
                sd.checksum = CPA_DC_ADLER32;
                status = cpaDcGetSessionSize(dc_inst_handles[i],
                    &sd, &sess_size, &ctx_size);