diff options
author | wli5 <[email protected]> | 2017-10-21 02:11:25 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-10-20 11:11:25 -0700 |
commit | 1cfdb0e6e401087778712fa893777b064a8afb6b (patch) | |
tree | 8cc3adbd820ce4a1747f590f0ef26b4f62078a87 /module/zfs/qat_compress.c | |
parent | 6044cf59cdf80d4ba94a7b6c6736cace8a7de9db (diff) |
Support integration with new QAT products
Support integration with new QAT products: Intel(R) C62x Chipset,
or Atom(R) C3000 Processor Product Family SoC:
1. Detect new file name in auto-conf.
2. Change MAX_INSTANCES to 48.
3. Change "num_inst" to U16 to clean a build warning.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Weigang Li <[email protected]>
Closes #6767
Diffstat (limited to 'module/zfs/qat_compress.c')
-rw-r--r-- | module/zfs/qat_compress.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/zfs/qat_compress.c b/module/zfs/qat_compress.c index 99d1c9a12..ea56f144c 100644 --- a/module/zfs/qat_compress.c +++ b/module/zfs/qat_compress.c @@ -34,9 +34,11 @@ /* * Max instances in QAT device, each instance is a channel to submit - * jobs to QAT hardware + * jobs to QAT hardware, this is only for pre-allocating instance, + * and session arrays, the actual number of instances are defined in + * the QAT driver's configure file. */ -#define MAX_INSTANCES 6 +#define MAX_INSTANCES 48 /* * ZLIB head and foot size @@ -104,7 +106,7 @@ static kstat_t *qat_ksp; static CpaInstanceHandle dc_inst_handles[MAX_INSTANCES]; static CpaDcSessionHandle session_handles[MAX_INSTANCES]; static CpaBufferList **buffer_array[MAX_INSTANCES]; -static Cpa32U num_inst = 0; +static Cpa16U num_inst = 0; static Cpa32U inst_num = 0; static boolean_t qat_init_done = B_FALSE; int zfs_qat_disable = 0; |