* [dts] [PATCH v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst
@ 2020-08-19 11:17 Yinan Wang
2020-08-27 1:59 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Yinan Wang @ 2020-08-19 11:17 UTC (permalink / raw)
To: dts; +Cc: Yinan Wang
Add description about changing MAX_QUEUES configuration according to the NIC’s property before using vswitch.
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
...ost_user_built_in_net_driver_test_plan.rst | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst b/test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst
index 6a8e8fe..f658df5 100644
--- a/test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst
+++ b/test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst
@@ -41,6 +41,27 @@ This feature test a very simple vhost-user net driver which demonstrates how to
vhost APIs by adding option "--builtin-net-driver" when launch vswitch.
This feature only can test with vswitch, and it is disabled by default.
+Prerequisites
+=============
+Device start fails if NIC’s max queues > the default number of 128.
+mbuf pool size is dependent on the MAX_QUEUES configuration, if NIC’s max queue number is larger than 128, device start will fail due to insufficient mbuf.
+Change the default number to make it work as below, just set the number according to the NIC’s property:
+For niantic 82599ES,#define MAX_QUEUES 128
+For fortville X710, #define MAX_QUEUES 192
+For fortville XXV710, #define MAX_QUEUES 352
+For fortville XL710, #define MAX_QUEUES 512
+
+Modify the testpmd code as following::
+
+ --- a/examples/vhost/main.c
+ +++ b/examples/vhost/main.c
+ @@ -28,7 +28,7 @@
+ #include "main.h"
+ #ifndef MAX_QUEUES
+ -#define MAX_QUEUES 128
+ +#define MAX_QUEUES 512
+ #endif
+
Test Case1: PVP test with vhost built-in net driver
===================================================
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst
2020-08-19 11:17 [dts] [PATCH v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst Yinan Wang
@ 2020-08-27 1:59 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-08-27 1:59 UTC (permalink / raw)
To: Wang, Yinan, dts; +Cc: Wang, Yinan
> Add description about changing MAX_QUEUES configuration according to the
> NIC’s property before using vswitch.
>
> Signed-off-by: Yinan Wang <yinan.wang@intel.com>
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-27 1:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 11:17 [dts] [PATCH v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst Yinan Wang
2020-08-27 1:59 ` Tu, Lijuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).