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 A8276A04DB; Fri, 16 Oct 2020 10:59:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E3911EBC4; Fri, 16 Oct 2020 10:59:10 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 82D491E9D9 for ; Fri, 16 Oct 2020 10:59:08 +0200 (CEST) IronPort-SDR: u9sAmft2hLckyJobpqj4Sg7z2/SUcHEq7XxDTySbSaI/Nubl2iz/C2mUXAYZQ9SZHj+hBm6NNz h+EoJ6J1JhUw== X-IronPort-AV: E=McAfee;i="6000,8403,9775"; a="146426085" X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="146426085" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 01:59:06 -0700 IronPort-SDR: h968+JvanIa+Efz9axIlYGZwWrrBxCqvO0w6R/O57UfrjXLrURbDSYDyA9sTmvkHpOCs7/e5nF Ws8foJ33pP8A== X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="531641488" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 01:59:05 -0700 From: JiangYuX To: dts@dpdk.org Cc: JiangYu Date: Fri, 16 Oct 2020 16:59:51 +0000 Message-Id: <20201016165951.832574-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/TestSuite_vhost_1024_ethports: adapt max vdev number to 1023 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" From: JiangYu The value of MAX_FDS is 1024 and there is an extra gobal fd, DPDK limits the number of vdev to 1023, so modify script to adapt. Signed-off-by: JiangYu --- tests/TestSuite_vhost_1024_ethports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vhost_1024_ethports.py b/tests/TestSuite_vhost_1024_ethports.py index afac0fa..5eb89c3 100644 --- a/tests/TestSuite_vhost_1024_ethports.py +++ b/tests/TestSuite_vhost_1024_ethports.py @@ -44,7 +44,8 @@ class TestVhost1024Ethports(TestCase): """ Run at the start of each test suite. """ - self.max_ethport = 1024 + # DPDK limits the number of vdev to 1023 + self.max_ethport = 1023 self.queue = 1 self.dut_ports = self.dut.get_ports() self.verify(len(self.dut_ports) >= 1, 'Insufficient ports for testing') -- 2.7.4