From f6940bb9ea1ad6905101ba143859983189d32ac5 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 c3c74910b..ab171a606 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} \\