From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/spdk/ocf/inc/cleaning/acp.h | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/spdk/ocf/inc/cleaning/acp.h (limited to 'src/spdk/ocf/inc/cleaning/acp.h') 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__ */ -- cgit v1.2.3