From: Maxime Coquelin Date: Tue, 26 Oct 2021 16:29:04 +0000 (+0200) Subject: vhost: increase number of async IO vectors X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=541053891a40ec046087771510276334cc23808d;p=dpdk.git vhost: increase number of async IO vectors This patch increases the number of IO vectors for the asynchronous data path from 512 to 2048. It has been reported during testing the starvation of IO vectors during iperf benchmark with 64KB packet size. As there are no direct relationship between VHOST_MAX_ASYNC_VEC and BUF_VECTOR_MAX, this patch also assign VHOST_MAX_ASYNC_VEC value directly instead of being a multiple of BUF_VECTOR_MAX. Signed-off-by: Maxime Coquelin Reviewed-by: Jiayu Hu --- diff --git a/lib/vhost/vhost.h b/lib/vhost/vhost.h index 1ba9a60ef2..05ccc35f37 100644 --- a/lib/vhost/vhost.h +++ b/lib/vhost/vhost.h @@ -49,7 +49,7 @@ #define MAX_PKT_BURST 32 #define VHOST_MAX_ASYNC_IT (MAX_PKT_BURST) -#define VHOST_MAX_ASYNC_VEC (BUF_VECTOR_MAX * 2) +#define VHOST_MAX_ASYNC_VEC 2048 #define PACKED_DESC_ENQUEUE_USED_FLAG(w) \ ((w) ? (VRING_DESC_F_AVAIL | VRING_DESC_F_USED | VRING_DESC_F_WRITE) : \