ocf/inc/ocf_cfg.h
Robert Baldyga a8e1ce8cc5 Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2018-11-29 15:14:21 +01:00

37 lines
701 B
C

/*
* Copyright(c) 2012-2018 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#ifndef __OCF_CFG_H__
#define __OCF_CFG_H__
/**
* @file
* @brief OCF configuration file
*/
/**
* Configure maximum numbers of cores in cache instance
*/
#ifndef OCF_CONFIG_MAX_CORES
#define OCF_CONFIG_MAX_CORES 4096
#endif
/** Maximum number of IO classes that can be configured */
#ifndef OCF_CONFIG_MAX_IO_CLASSES
#define OCF_CONFIG_MAX_IO_CLASSES 33
#endif
#if OCF_CONFIG_MAX_IO_CLASSES > 256
#error "Limit of maximum number of IO classes exceeded"
#endif
/** Enabling debug statistics */
#ifndef OCF_CONFIG_DEBUG_STATS
#define OCF_CONFIG_DEBUG_STATS 0
#endif
#endif /* __OCF_CFG_H__ */