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/promotion | |
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/promotion')
-rw-r--r-- | src/spdk/ocf/inc/promotion/nhit.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/spdk/ocf/inc/promotion/nhit.h b/src/spdk/ocf/inc/promotion/nhit.h new file mode 100644 index 000000000..32f4dac63 --- /dev/null +++ b/src/spdk/ocf/inc/promotion/nhit.h @@ -0,0 +1,23 @@ +/* + * Copyright(c) 2019 Intel Corporation + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +#ifndef __OCF_PROMOTION_NHIT_H__ +#define __OCF_PROMOTION_NHIT_H__ + +enum ocf_nhit_param { + ocf_nhit_insertion_threshold, + ocf_nhit_trigger_threshold, + ocf_nhit_param_max +}; + +#define OCF_NHIT_MIN_THRESHOLD 2 +#define OCF_NHIT_MAX_THRESHOLD 1000 +#define OCF_NHIT_THRESHOLD_DEFAULT 3 + +#define OCF_NHIT_MIN_TRIGGER 0 +#define OCF_NHIT_MAX_TRIGGER 100 +#define OCF_NHIT_TRIGGER_DEFAULT 80 + +#endif /* __OCF_PROMOTION_NHIT_H__ */ |