Handle separate functons for retrieving core stats and info.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -1909,7 +1909,7 @@ int cache_mngt_get_core_info(struct kcas_core_info *info)
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
result = ocf_core_get_stats(core, &info->stats);
|
||||
result = ocf_core_get_info(core, &info->info);
|
||||
if (result)
|
||||
goto unlock;
|
||||
|
||||
|
||||
@@ -208,8 +208,7 @@ struct kcas_core_info {
|
||||
/** Core id */
|
||||
uint16_t core_id;
|
||||
|
||||
/** CAS statistics of core */
|
||||
struct ocf_stats_core stats;
|
||||
struct ocf_core_info info;
|
||||
|
||||
ocf_core_state_t state;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user