Skip to content

Commit fa37d38

Browse files
sumanku3herbertx
authored andcommitted
crypto: qat - add decompression service for rate limiting
Add a new base service type ADF_SVC_DECOMP to the QAT rate limiting (RL) infrastructure. This enables RL support for the decompression (DECOMP) service type, allowing service-level agreements (SLAs) to be enforced when decompression is configured. The new service is exposed in the sysfs RL service list for visibility. Note that this support is applicable only to devices that provide the decompression service, such as QAT GEN6 devices. Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 63fa7c4 commit fa37d38

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/crypto/intel/qat/qat_common/adf_rl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ static enum adf_cfg_service_type srv_to_cfg_svc_type(enum adf_base_services rl_s
177177
return SYM;
178178
case ADF_SVC_DC:
179179
return COMP;
180+
case ADF_SVC_DECOMP:
181+
return DECOMP;
180182
default:
181183
return UNUSED;
182184
}

drivers/crypto/intel/qat/qat_common/adf_rl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ enum adf_base_services {
2828
ADF_SVC_ASYM = 0,
2929
ADF_SVC_SYM,
3030
ADF_SVC_DC,
31+
ADF_SVC_DECOMP,
3132
ADF_SVC_NONE,
3233
};
3334

drivers/crypto/intel/qat/qat_common/adf_sysfs_rl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ static const char *const rl_services[] = {
3535
[ADF_SVC_ASYM] = "asym",
3636
[ADF_SVC_SYM] = "sym",
3737
[ADF_SVC_DC] = "dc",
38+
[ADF_SVC_DECOMP] = "decomp",
3839
};
3940

4041
static const char *const rl_operations[] = {

0 commit comments

Comments
 (0)