summaryrefslogtreecommitdiffstats
path: root/src/spdk/ocf/inc/cleaning/acp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/ocf/inc/cleaning/acp.h')
-rw-r--r--src/spdk/ocf/inc/cleaning/acp.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/spdk/ocf/inc/cleaning/acp.h b/src/spdk/ocf/inc/cleaning/acp.h
new file mode 100644
index 000000000..9ca121a84
--- /dev/null
+++ b/src/spdk/ocf/inc/cleaning/acp.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright(c) 2012-2018 Intel Corporation
+ * SPDX-License-Identifier: BSD-3-Clause-Clear
+ */
+#ifndef __OCF_CLEANING_ACP_H__
+#define __OCF_CLEANING_ACP_H__
+
+/**
+ * @file
+ * @brief ACP cleaning policy API
+ */
+
+enum ocf_cleaning_acp_parameters {
+ ocf_acp_wake_up_time,
+ ocf_acp_flush_max_buffers,
+};
+
+/**
+ * @name ACP cleaning policy parameters
+ * @{
+ */
+
+/**
+ * ACP cleaning policy time between flushing cycles (in ms)
+ */
+
+/**< Wake up time minimum value */
+#define OCF_ACP_MIN_WAKE_UP 0
+/**< Wake up time maximum value */
+#define OCF_ACP_MAX_WAKE_UP 10000
+/**< Wake up time default value */
+#define OCF_ACP_DEFAULT_WAKE_UP 10
+
+/**
+ * ACP cleaning thread number of dirty cache lines to be flushed in one cycle
+ */
+
+/** Dirty cache lines to be flushed in one cycle minimum value */
+#define OCF_ACP_MIN_FLUSH_MAX_BUFFERS 1
+/** Dirty cache lines to be flushed in one cycle maximum value */
+#define OCF_ACP_MAX_FLUSH_MAX_BUFFERS 10000
+/** Dirty cache lines to be flushed in one cycle default value */
+#define OCF_ACP_DEFAULT_FLUSH_MAX_BUFFERS 128
+
+/**
+ * @}
+ */
+
+#endif /* __OCF_CLEANING_ACP_H__ */