[v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst

Message ID 20200819111738.17838-1-yinan.wang@intel.com (mailing list archive)
State Accepted
Headers
Series [v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst |

Commit Message

Wang, Yinan Aug. 19, 2020, 11:17 a.m. UTC
  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(+)
  

Comments

Tu, Lijuan Aug. 27, 2020, 1:59 a.m. UTC | #1
> 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
  

Patch

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
 ===================================================