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/vhost_1024_ethports_test_plan.rst
Date: Wed, 21 Oct 2020 06:11:10 -0400	[thread overview]
Message-ID: <20201021101110.923389-1-yinan.wang@intel.com> (raw)

Updta test plan

Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
 test_plans/vhost_1024_ethports_test_plan.rst | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/test_plans/vhost_1024_ethports_test_plan.rst b/test_plans/vhost_1024_ethports_test_plan.rst
index c31f62a..a9ef4fb 100644
--- a/test_plans/vhost_1024_ethports_test_plan.rst
+++ b/test_plans/vhost_1024_ethports_test_plan.rst
@@ -31,27 +31,29 @@
    OF THE POSSIBILITY OF SUCH DAMAGE.
 
 =============================
-vhost 1024 ethports test plan
+vhost 1023 ethports test plan
 =============================
 
-This test plan test function of launch vhost with 1024 ethports.
+This test plan test function of launch vhost with 1023 ethports.
+Note: Because the value of MAX_FDS is 1024 and there is an extra gobal fd, the number of vdev is limit to 1023. 
+So when vhost-user ports number > 1023, it will report an error "failed to add listen fd".
 
-Test Case1:  Basic test for launch vhost with 1024 ethports
+Test Case1:  Basic test for launch vhost with 1023 ethports
 ===========================================================
 
-1. SW preparation: change "CONFIG_RTE_MAX_ETHPORTS" to 1024 in DPDK configure file::
+1. SW preparation: change "CONFIG_RTE_MAX_ETHPORTS" to 1023 in DPDK configure file::
 
     vi ./config/common_base
     -CONFIG_RTE_MAX_ETHPORTS=32
-    +CONFIG_RTE_MAX_ETHPORTS=1024
+    +CONFIG_RTE_MAX_ETHPORTS=1023
 
-2. Launch vhost with 1024 vdev::
+2. Launch vhost with 1023 vdev::
 
     ./testpmd -c 0x3000 -n 4 --file-prefix=vhost --vdev 'eth_vhost0,iface=vhost-net,queues=1' \
-    --vdev 'eth_vhost1,iface=vhost-net1,queues=1' ... -- -i # only list two vdev, here ommit other 1022 vdevs, from eth_vhost2 to eth_vhost1023
+    --vdev 'eth_vhost1,iface=vhost-net1,queues=1' ... -- -i # only list two vdev, here ommit other 1021 vdevs, from eth_vhost2 to eth_vhost1022
 
 3. Change "CONFIG_RTE_MAX_ETHPORTS" back to 32 in DPDK configure file::
 
     vi ./config/common_base
     +CONFIG_RTE_MAX_ETHPORTS=32
-    -CONFIG_RTE_MAX_ETHPORTS=1024
+    -CONFIG_RTE_MAX_ETHPORTS=1023
-- 
2.25.1


             reply	other threads:[~2020-10-21  1:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21 10:11 Yinan Wang [this message]
2020-11-03  1:37 ` 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=20201021101110.923389-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).