]> git.proxmox.com Git - mirror_zfs.git/commit
Code improvement and bug fixes for QAT support
authorcfzhu <chengfeix.zhu@intel.com>
Tue, 16 Apr 2019 19:38:36 +0000 (03:38 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Apr 2019 19:38:36 +0000 (12:38 -0700)
commit5090f72743f5a587b1a8b64aaa1023913735d0bf
tree6ab4731f14ffebc4895e31c7aed85ce8970fa45e
parent59f6594cf605635c22311c7f0752bbc67807a508
Code improvement and bug fixes for QAT support

1. Support QAT when ZFS is root file-system:
   When ZFS module is loaded before QAT started, the QAT can
   be started again in post-process, e.g.:
   echo 0 > /sys/module/zfs/parameters/zfs_qat_compress_disable
   echo 0 > /sys/module/zfs/parameters/zfs_qat_encrypt_disable
   echo 0 > /sys/module/zfs/parameters/zfs_qat_checksum_disable
2. Verify alder checksum of the de-compress result
3. Allocate Digest, IV and AAD buffer in physical contiguous
   memory by QAT_PHYS_CONTIG_ALLOC.
4. Update the documentation for zfs_qat_compress_disable,
   zfs_qat_checksum_disable, zfs_qat_encrypt_disable.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Weigang Li <weigang.li@intel.com>
Signed-off-by: Chengfeix Zhu <chengfeix.zhu@intel.com>
Closes #8323
Closes #8610
man/man5/zfs-module-parameters.5
module/zfs/qat.c
module/zfs/qat.h
module/zfs/qat_compress.c
module/zfs/qat_crypt.c