Expose PP settings in IOCTL iface
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
bb1e554dac
commit
9598fa76f1
@ -2123,6 +2123,17 @@ int cache_mngt_set_cache_params(struct kcas_set_cache_param *info)
|
|||||||
ocf_cleaning_acp, ocf_acp_flush_max_buffers,
|
ocf_cleaning_acp, ocf_acp_flush_max_buffers,
|
||||||
info->param_value);
|
info->param_value);
|
||||||
break;
|
break;
|
||||||
|
case cache_param_promotion_policy_type:
|
||||||
|
result = cache_mngt_set_promotion_policy(cache, info->param_value);
|
||||||
|
break;
|
||||||
|
case cache_param_promotion_nhit_insertion_threshold:
|
||||||
|
result = cache_mngt_set_promotion_param(cache,
|
||||||
|
ocf_nhit_insertion_threshold, info->param_value);
|
||||||
|
break;
|
||||||
|
case cache_param_promotion_nhit_trigger_threshold:
|
||||||
|
result = cache_mngt_set_promotion_param(cache,
|
||||||
|
ocf_nhit_trigger_threshold, info->param_value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
result = -EINVAL;
|
result = -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -353,6 +353,9 @@ enum kcas_cache_param_id {
|
|||||||
cache_param_cleaning_alru_activity_threshold,
|
cache_param_cleaning_alru_activity_threshold,
|
||||||
cache_param_cleaning_acp_wake_up_time,
|
cache_param_cleaning_acp_wake_up_time,
|
||||||
cache_param_cleaning_acp_flush_max_buffers,
|
cache_param_cleaning_acp_flush_max_buffers,
|
||||||
|
cache_param_promotion_policy_type,
|
||||||
|
cache_param_promotion_nhit_insertion_threshold,
|
||||||
|
cache_param_promotion_nhit_trigger_threshold,
|
||||||
cache_param_id_max,
|
cache_param_id_max,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user