Skip to content

Commit 45515ee

Browse files
sumanku3herbertx
authored andcommitted
crypto: qat - add compression slice count for rate limiting
In QAT GEN4 devices, the compression slice count was tracked using the dcpr_cnt field. Introduce a new cpr_cnt field in the rate limiting (RL) infrastructure to track the compression (CPR) slice count independently. The cpr_cnt value is populated via the RL_INIT admin message. The existing dcpr_cnt field will now be used exclusively to cache the decompression slice count, ensuring a clear separation between compression and decompression tracking. Signed-off-by: Suman Kumar Chakraborty <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e983946 commit 45515ee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ struct rl_slice_cnt {
6868
u8 dcpr_cnt;
6969
u8 pke_cnt;
7070
u8 cph_cnt;
71+
u8 cpr_cnt;
7172
};
7273

7374
struct adf_rl_interface_data {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ int adf_rl_send_admin_init_msg(struct adf_accel_dev *accel_dev,
6363
slices_int->pke_cnt = slices_resp.pke_cnt;
6464
/* For symmetric crypto, slice tokens are relative to the UCS slice */
6565
slices_int->cph_cnt = slices_resp.ucs_cnt;
66+
slices_int->cpr_cnt = slices_resp.cpr_cnt;
6667

6768
return 0;
6869
}

0 commit comments

Comments
 (0)