From 505b97ae20a7d270f1f9406e6e795d10f9fcdbe6 Mon Sep 17 00:00:00 2001 From: David Qian Date: Thu, 7 Dec 2017 16:43:13 +0800 Subject: [PATCH] Enable QAT support in zfs-dkms RPM Enable QAT accelerated gzip compression in zfs-dkms RPM package when environment variant ICP_ROOT is set to QAT drive source code folder and QAT hardware presence. Otherwise, use default gzip compression. Reviewed-by: George Melikov Reviewed-by: David Qian Signed-off-by: Brian Behlendorf Closes #6932 --- scripts/dkms.mkconf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index ad97f9bca6..880510abd3 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -30,6 +30,12 @@ PRE_BUILD="configure --with-spl=\${source_tree}/spl-\${PACKAGE_VERSION} --with-spl-obj=\${dkms_tree}/spl/\${PACKAGE_VERSION}/\${kernelver}/\${arch} --with-spl-timeout=300 + \$( + [[ -n \"\${ICP_ROOT}\" ]] && \\ + { + echo --with-qat=\"\${ICP_ROOT}\" + } + ) \$( [[ -r \${PACKAGE_CONFIG} ]] \\ && source \${PACKAGE_CONFIG} \\