]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/ocf/inc/ocf_cfg.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / ocf / inc / ocf_cfg.h
1 /*
2 * Copyright(c) 2012-2018 Intel Corporation
3 * SPDX-License-Identifier: BSD-3-Clause-Clear
4 */
5
6
7 #ifndef __OCF_CFG_H__
8 #define __OCF_CFG_H__
9
10 /**
11 * @file
12 * @brief OCF configuration file
13 */
14
15 /**
16 * Configure maximum numbers of cores in cache instance
17 */
18 #ifndef OCF_CONFIG_MAX_CORES
19 #define OCF_CONFIG_MAX_CORES 4096
20 #endif
21
22 /** Maximum number of IO classes that can be configured */
23 #ifndef OCF_CONFIG_MAX_IO_CLASSES
24 #define OCF_CONFIG_MAX_IO_CLASSES 33
25 #endif
26
27 #if OCF_CONFIG_MAX_IO_CLASSES > 256
28 #error "Limit of maximum number of IO classes exceeded"
29 #endif
30
31 /** Enabling debug statistics */
32 #ifndef OCF_CONFIG_DEBUG_STATS
33 #define OCF_CONFIG_DEBUG_STATS 0
34 #endif
35
36 #endif /* __OCF_CFG_H__ */