diff options
author | David Qian <[email protected]> | 2017-12-07 16:43:13 +0800 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2017-12-18 10:02:19 -0800 |
commit | 505b97ae20a7d270f1f9406e6e795d10f9fcdbe6 (patch) | |
tree | 4efff248fc1aaa1fe305338761d7941e8991a205 /scripts | |
parent | 30a64ebaeda31051ab46eb1b86d042096b4ec782 (diff) |
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 <[email protected]>
Reviewed-by: David Qian <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #6932
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dkms.mkconf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index ad97f9bca..880510abd 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -31,6 +31,12 @@ PRE_BUILD="configure --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} \\ && shopt -q -s extglob \\ |