aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/gzip.c
diff options
context:
space:
mode:
authorTom Caputi <[email protected]>2018-03-09 16:37:15 -0500
committerBrian Behlendorf <[email protected]>2018-03-09 13:37:15 -0800
commitcf63739191b6cac629d053930a4aea592bca3819 (patch)
tree818c74079631f8abf24356ac16e846a7dec24c68 /module/zfs/gzip.c
parent8e5d14844d2f22997b3a41d8e2357e8f30c5d5dd (diff)
QAT support for AES-GCM
This patch adds support for acceleration of AES-GCM encryption with Intel Quick Assist Technology. 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 #7282
Diffstat (limited to 'module/zfs/gzip.c')
-rw-r--r--module/zfs/gzip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/gzip.c b/module/zfs/gzip.c
index 6c8fdd308..6e4db718c 100644
--- a/module/zfs/gzip.c
+++ b/module/zfs/gzip.c
@@ -28,7 +28,7 @@
#include <sys/debug.h>
#include <sys/types.h>
-#include "qat_compress.h"
+#include "qat.h"
#ifdef _KERNEL
@@ -58,7 +58,7 @@ gzip_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)
ASSERT(d_len <= s_len);
/* check if hardware accelerator can be used */
- if (qat_use_accel(s_len)) {
+ if (qat_dc_use_accel(s_len)) {
if (qat_compress(QAT_COMPRESS, s_start,
s_len, d_start, d_len, &dstlen) == CPA_STATUS_SUCCESS)
return ((size_t)dstlen);
@@ -85,7 +85,7 @@ gzip_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)
ASSERT(d_len >= s_len);
/* check if hardware accelerator can be used */
- if (qat_use_accel(d_len)) {
+ if (qat_dc_use_accel(d_len)) {
if (qat_compress(QAT_DECOMPRESS, s_start, s_len,
d_start, d_len, &dstlen) == CPA_STATUS_SUCCESS)
return (0);