Add ocf_cache_line_size_none
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
8c96270ce8
commit
efa96ef7bd
@ -234,6 +234,9 @@ typedef enum {
|
|||||||
* OCF supported cache line sizes in bytes
|
* OCF supported cache line sizes in bytes
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
ocf_cache_line_size_none = 0,
|
||||||
|
/*!< None */
|
||||||
|
|
||||||
ocf_cache_line_size_4 = 4 * KiB,
|
ocf_cache_line_size_4 = 4 * KiB,
|
||||||
/*!< 4 kiB */
|
/*!< 4 kiB */
|
||||||
|
|
||||||
|
@ -1594,7 +1594,7 @@ static int _ocf_mngt_cache_validate_device_cfg(
|
|||||||
if (device_cfg->uuid.size > OCF_VOLUME_UUID_MAX_SIZE)
|
if (device_cfg->uuid.size > OCF_VOLUME_UUID_MAX_SIZE)
|
||||||
return -OCF_ERR_INVAL;
|
return -OCF_ERR_INVAL;
|
||||||
|
|
||||||
if (device_cfg->cache_line_size &&
|
if (device_cfg->cache_line_size != ocf_cache_line_size_none &&
|
||||||
!ocf_cache_line_size_is_valid(device_cfg->cache_line_size))
|
!ocf_cache_line_size_is_valid(device_cfg->cache_line_size))
|
||||||
return -OCF_ERR_INVALID_CACHE_LINE_SIZE;
|
return -OCF_ERR_INVALID_CACHE_LINE_SIZE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user