diff options
author | Tom Caputi <[email protected]> | 2018-03-15 13:53:58 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-03-15 10:53:58 -0700 |
commit | 38742209322b5b3d93635a4820b2f9c755aadee8 (patch) | |
tree | 166b15847cb283cb710e93c73933fc0279cbcce5 /module/zfs/qat.c | |
parent | 8a2a9db8df7d421aedeababf7b1ecbb51642f16c (diff) |
SHA256 QAT acceleration
This patch enables acceleration of SHA256 checksums using Intel
Quick Assist Technology. This patch also fixes up and refactors
some of the code from QAT encryption to make the behavior
consistent.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chengfeix Zhu <[email protected]>
Signed-off-by: Weigang Li <[email protected]>
Signed-off-by: Tom Caputi <[email protected]>
Closes #7295
Diffstat (limited to 'module/zfs/qat.c')
-rw-r--r-- | module/zfs/qat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/zfs/qat.c b/module/zfs/qat.c index 4dc34f1e6..0a4f9c72a 100644 --- a/module/zfs/qat.c +++ b/module/zfs/qat.c @@ -38,10 +38,12 @@ qat_stats_t qat_stats = { { "decrypt_total_in_bytes", KSTAT_DATA_UINT64 }, { "decrypt_total_out_bytes", KSTAT_DATA_UINT64 }, { "crypt_fails", KSTAT_DATA_UINT64 }, + { "cksum_requests", KSTAT_DATA_UINT64 }, + { "cksum_total_in_bytes", KSTAT_DATA_UINT64 }, + { "cksum_fails", KSTAT_DATA_UINT64 }, }; static kstat_t *qat_ksp = NULL; -int zfs_qat_disable = 0; CpaStatus qat_mem_alloc_contig(void **pp_mem_addr, Cpa32U size_bytes) |