From 1924221192ba64c31d140ffbfc4c4c37ed63d92b Mon Sep 17 00:00:00 2001 From: paul luse Date: Thu, 29 Oct 2020 19:23:02 -0400 Subject: [PATCH] lib/accel: change max batch size to match idxd batch max 0x10 is thought to be a more common size, hard to tell until we get real silicon but either way 0x80 limited the total number of outstanding batches way too much. Signed-off-by: paul luse Change-Id: I61ba219b9d0185b126d300468ddd8a2214ed284a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4971 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/accel/accel_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accel/accel_engine.c b/lib/accel/accel_engine.c index b65528984..ca3e248eb 100644 --- a/lib/accel/accel_engine.c +++ b/lib/accel/accel_engine.c @@ -51,7 +51,7 @@ #define ALIGN_4K 0x1000 #define MAX_TASKS_PER_CHANNEL 0x800 -#define MAX_BATCH_SIZE 0x80 +#define MAX_BATCH_SIZE 0x10 #define MAX_NUM_BATCHES_PER_CHANNEL (MAX_TASKS_PER_CHANNEL / MAX_BATCH_SIZE) /* Largest context size for all accel modules */