From 38742209322b5b3d93635a4820b2f9c755aadee8 Mon Sep 17 00:00:00 2001 From: Tom Caputi Date: Thu, 15 Mar 2018 13:53:58 -0400 Subject: 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 Signed-off-by: Chengfeix Zhu Signed-off-by: Weigang Li Signed-off-by: Tom Caputi Closes #7295 --- module/zfs/qat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/zfs/qat.c') 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) -- cgit v1.2.3