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 68447A0546; Thu, 16 Jul 2020 09:44:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5F3A51BE98; Thu, 16 Jul 2020 09:44:10 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 48F3C4F9A for ; Thu, 16 Jul 2020 09:44:08 +0200 (CEST) IronPort-SDR: JYRKKM6bvS5TgydYOA1P9KiS4TABFwsm2U4Pvo7Gsywws+IEudpr47Iq5xB6kTNPtdZe40/hmy g2IGZBuI6etQ== X-IronPort-AV: E=McAfee;i="6000,8403,9683"; a="150719152" X-IronPort-AV: E=Sophos;i="5.75,358,1589266800"; d="scan'208";a="150719152" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2020 00:44:07 -0700 IronPort-SDR: 1BguAIy/yw94qxC4QI+IvAZ43d+lXFaUB/81zbqPwh8j+6jnIpYCvjvWbWnGtVCv5dS6azYfKa TCUwO4ijRGYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,358,1589266800"; d="scan'208";a="360961529" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga001.jf.intel.com with ESMTP; 16 Jul 2020 00:44:06 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Thu, 16 Jul 2020 15:45:01 +0800 Message-Id: <1594885501-1462-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=a Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] TestSuite_shutdown_api/check_rxtx_desc_status:The maximum number of queues for springville is 4 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" The maximum number of queues for springville is 4 Signed-off-by: xizhan4x --- tests/TestSuite_shutdown_api.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 650ccfc..3f42f93 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -793,10 +793,15 @@ class TestShutdownApi(TestCase): When rx_descriptor_status is used, status can be “AVAILABLE”, “DONE” or “UNAVAILABLE”. When tx_descriptor_status is used, status can be “FULL”, “DONE” or “UNAVAILABLE.” """ - self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --txq=16 --rxq=16 --txd=4096 --rxd=4096" % utils.create_mask(self.ports), socket=self.ports_socket) + queue_num=16 + if self.nic in ["springville"]: + queue_num=4 + self.pmdout.start_testpmd("Default", + "--portmask=%s --port-topology=loop --txq=%s --rxq=%s --txd=4096 --rxd=4096" + % (utils.create_mask(self.ports),queue_num,queue_num), socket=self.ports_socket) for i in range(3): - rxqid = randint(0, 16) + rxqid = randint(0, queue_num-1) self.desc = randint(0, 4095) out = self.dut.send_expect("show port %s rxq %s desc %s status" % (self.ports[0], rxqid, self.desc), "testpmd> ") self.verify( @@ -805,7 +810,7 @@ class TestShutdownApi(TestCase): self.verify( "Bad arguments" not in out and "Invalid queueid" not in out, "RX descriptor status is not supported") - txqid = randint(0, 16) + txqid = randint(0, queue_num-1) self.desc = randint(0, 511) out = self.dut.send_expect("show port %s txq %s desc %s status" % (self.ports[0], txqid, self.desc), "testpmd> ") self.verify( -- 1.8.3.1