test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yinan Wang <yinan.wang@intel.com>
To: dts@dpdk.org
Cc: Yinan Wang <yinan.wang@intel.com>
Subject: [dts] [PATCH v1] test_plans/pvp_vhost_user_built_in_net_driver_test_plan.rst
Date: Wed, 19 Aug 2020 07:17:38 -0400	[thread overview]
Message-ID: <20200819111738.17838-1-yinan.wang@intel.com> (raw)

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


             reply	other threads:[~2020-08-19  2:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19 11:17 Yinan Wang [this message]
2020-08-27  1:59 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200819111738.17838-1-yinan.wang@intel.com \
    --to=yinan.wang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).