summaryrefslogtreecommitdiffstats
path: root/src/spdk/ocf/inc/promotion
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/ocf/inc/promotion')
-rw-r--r--src/spdk/ocf/inc/promotion/nhit.h23
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__ */