Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - rename get_sla_arr_of_type()

The function get_sla_arr_of_type() returns a pointer to an SLA type
specific array.
Rename it and expose it as it will be used externally to this module.

This does not introduce any functional change.

Signed-off-by: Siming Wan <siming.wan@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
Signed-off-by: Xin Zeng <xin.zeng@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Siming Wan and committed by
Herbert Xu
84058ffb 680302d1

+7 -5
+5 -5
drivers/crypto/intel/qat/qat_common/adf_rl.c
··· 183 183 } 184 184 185 185 /** 186 - * get_sla_arr_of_type() - Returns a pointer to SLA type specific array 186 + * adf_rl_get_sla_arr_of_type() - Returns a pointer to SLA type specific array 187 187 * @rl_data: pointer to ratelimiting data 188 188 * @type: SLA type 189 189 * @sla_arr: pointer to variable where requested pointer will be stored 190 190 * 191 191 * Return: Max number of elements allowed for the returned array 192 192 */ 193 - static u32 get_sla_arr_of_type(struct adf_rl *rl_data, enum rl_node_type type, 193 + u32 adf_rl_get_sla_arr_of_type(struct adf_rl *rl_data, enum rl_node_type type, 194 194 struct rl_sla ***sla_arr) 195 195 { 196 196 switch (type) { ··· 778 778 rp_in_use[sla->ring_pairs_ids[i]] = false; 779 779 780 780 update_budget(sla, old_cir, true); 781 - get_sla_arr_of_type(rl_data, sla->type, &sla_type_arr); 781 + adf_rl_get_sla_arr_of_type(rl_data, sla->type, &sla_type_arr); 782 782 assign_node_to_parent(rl_data->accel_dev, sla, true); 783 783 adf_rl_send_admin_delete_msg(rl_data->accel_dev, node_id, sla->type); 784 784 mark_rps_usage(sla, rl_data->rp_in_use, false); ··· 875 875 876 876 if (!is_update) { 877 877 mark_rps_usage(sla, rl_data->rp_in_use, true); 878 - get_sla_arr_of_type(rl_data, sla->type, &sla_type_arr); 878 + adf_rl_get_sla_arr_of_type(rl_data, sla->type, &sla_type_arr); 879 879 sla_type_arr[sla->node_id] = sla; 880 880 rl_data->sla[sla->sla_id] = sla; 881 881 } ··· 1065 1065 1066 1066 /* Unregister and remove all SLAs */ 1067 1067 for (j = RL_LEAF; j >= end_type; j--) { 1068 - max_id = get_sla_arr_of_type(rl_data, j, &sla_type_arr); 1068 + max_id = adf_rl_get_sla_arr_of_type(rl_data, j, &sla_type_arr); 1069 1069 1070 1070 for (i = 0; i < max_id; i++) { 1071 1071 if (!sla_type_arr[i])
+2
drivers/crypto/intel/qat/qat_common/adf_rl.h
··· 151 151 u16 ring_pairs_cnt; 152 152 }; 153 153 154 + u32 adf_rl_get_sla_arr_of_type(struct adf_rl *rl_data, enum rl_node_type type, 155 + struct rl_sla ***sla_arr); 154 156 int adf_rl_add_sla(struct adf_accel_dev *accel_dev, 155 157 struct adf_rl_sla_input_data *sla_in); 156 158 int adf_rl_update_sla(struct adf_accel_dev *accel_dev,