diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/spdk/ocf/inc/ocf_cfg.h | |
parent | Initial commit. (diff) | |
download | ceph-upstream/18.2.2.tar.xz ceph-upstream/18.2.2.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/ocf/inc/ocf_cfg.h')
-rw-r--r-- | src/spdk/ocf/inc/ocf_cfg.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/spdk/ocf/inc/ocf_cfg.h b/src/spdk/ocf/inc/ocf_cfg.h new file mode 100644 index 000000000..266d6c968 --- /dev/null +++ b/src/spdk/ocf/inc/ocf_cfg.h @@ -0,0 +1,36 @@ +/* + * 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__ */ |