From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55678A04DD; Wed, 21 Oct 2020 03:21:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E3A5AC7C; Wed, 21 Oct 2020 03:21:39 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E9D44AC7B for ; Wed, 21 Oct 2020 03:21:36 +0200 (CEST) IronPort-SDR: IjuYJMvlBKdn6ei95nfggkiODQejtD9QlXMunWSKMZON/YyskCO/eZV63U2ko+xBZsHKbSJp7H 4s4V+nQP71eA== X-IronPort-AV: E=McAfee;i="6000,8403,9780"; a="163809687" X-IronPort-AV: E=Sophos;i="5.77,399,1596524400"; d="scan'208";a="163809687" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 18:21:34 -0700 IronPort-SDR: cQUayE/qn7hRl62D3Pu1LrKvIQHN9aTB+5799Wr/i+GtelefgQ0HfGmklnzU05rmCH6zygZVNy KRrGHQj6uN9w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,399,1596524400"; d="scan'208";a="466122004" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by orsmga004.jf.intel.com with ESMTP; 20 Oct 2020 18:21:33 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Wed, 21 Oct 2020 06:11:10 -0400 Message-Id: <20201021101110.923389-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH v1] test_plans/vhost_1024_ethports_test_plan.rst X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Updta test plan Signed-off-by: Yinan Wang --- 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