Expose PP settings in IOCTL iface

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2019-09-11 10:12:03 +02:00
parent bb1e554dac
commit 9598fa76f1
2 changed files with 14 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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,
}; };