diff options
author | Volker Mauel <[email protected]> | 2023-09-07 23:38:17 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-07 14:38:17 -0700 |
commit | 12ce45f2606c429ee39325a0cb9b8daa5a2f3382 (patch) | |
tree | addda98ca0ea5815c6cfa6765274de5e7c3cc459 | |
parent | 3602775330b332a88b1cdf1e8daa8a31c524a3de (diff) |
Intel QAT 1.7 compatibility
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 <[email protected]>
Signed-off-by: Volker Mauel <[email protected]>
Closes #15190
-rw-r--r-- | module/os/linux/zfs/qat_compress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/os/linux/zfs/qat_compress.c b/module/os/linux/zfs/qat_compress.c index 07d5d34da..6d0595dd5 100644 --- a/module/os/linux/zfs/qat_compress.c +++ b/module/os/linux/zfs/qat_compress.c @@ -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); |