From 4832235759e77563e784d89c53face3d0f5245ab Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Tue, 14 Feb 2023 11:05:20 +0100 Subject: [PATCH] accel: re-enable iobuf thread caches They were disabled before the v23.01 release, because none of the other libraries were using the new spdk_accel_append_* API. But now, they will be used in the bdev layer and bdev modules, so they need to be re-enabled. We're using the same values as we do in the bdev layer. Signed-off-by: Konrad Sztyber Change-Id: Ibda86ca5619e4104e107048ce0965171501fdc5a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16968 Reviewed-by: Ben Walker Reviewed-by: Aleksey Marchuk Reviewed-by: Shuhei Matsumoto Tested-by: SPDK CI Jenkins --- lib/accel/accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/accel/accel.c b/lib/accel/accel.c index 7d68b03e9..dacaca870 100644 --- a/lib/accel/accel.c +++ b/lib/accel/accel.c @@ -29,8 +29,8 @@ #define ALIGN_4K 0x1000 #define MAX_TASKS_PER_CHANNEL 0x800 -#define ACCEL_SMALL_CACHE_SIZE 0 -#define ACCEL_LARGE_CACHE_SIZE 0 +#define ACCEL_SMALL_CACHE_SIZE 128 +#define ACCEL_LARGE_CACHE_SIZE 16 /* Set MSB, so we don't return NULL pointers as buffers */ #define ACCEL_BUFFER_BASE ((void *)(1ull << 63)) #define ACCEL_BUFFER_OFFSET_MASK ((uintptr_t)ACCEL_BUFFER_BASE - 1)