[dpdk-stable] [PATCH v4] examples/vhost: fix failure to launch dpdk-vhost
Wenwu Ma
wenwux.ma at intel.com
Wed Nov 3 15:17:19 CET 2021
When the default max queue value of vhost is 128, dpdk-vhost will fail to
launch with a 40G i40e port due to the mbuf allocation of the port queue fails.
Therefore, we modify the default value of max queue from 128 to 512,
it will ensure that there are enough mbufs.
Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application")
Cc: stable at dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
examples/vhost/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index bc3d71c898..36969a4de5 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -29,7 +29,7 @@
#include "main.h"
#ifndef MAX_QUEUES
-#define MAX_QUEUES 128
+#define MAX_QUEUES 512
#endif
/* the maximum number of external ports supported */
--
2.25.1
More information about the stable
mailing list