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 BA384A034F; Wed, 13 May 2020 11:24:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 991831D173; Wed, 13 May 2020 11:24:14 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0CFF81D171 for ; Wed, 13 May 2020 11:24:12 +0200 (CEST) IronPort-SDR: Qj6JFp6N7FxBYQI7jD2N3/XkVi6bqF97Q4pAWbVvvDG3ebxAcy0K1M2vPcGHdCK8eHTZBj2oSj cXe1HfjA4fiw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 02:24:12 -0700 IronPort-SDR: HfhmkzkH0gXEYmgzvYPBW9CBHr3hW/Yi1V4CNT+51q/23DxM/WVcelG1U8CnkPCJnRSIuMWiFC cQ7Dhhko+JgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,387,1583222400"; d="scan'208";a="280440382" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.183.135]) by orsmga002.jf.intel.com with ESMTP; 13 May 2020 02:24:11 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Wed, 13 May 2020 17:14:10 +0800 Message-Id: <1589361250-10384-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/TestSuite_shutdown_api:Modify Max queue 16 to 8 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 supported by some network cards is 8, so it is modified from 16 to 8 Signed-off-by: xizhan4x --- tests/TestSuite_shutdown_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index dcbd59e..86b2e0a 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -791,10 +791,10 @@ 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) + self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --txq=8 --rxq=8 --txd=4096 --rxd=4096" % utils.create_mask(self.ports), socket=self.ports_socket) for i in range(3): - rxqid = randint(0, 16) + rxqid = randint(0, 7) 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( @@ -803,7 +803,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, 7) 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( -- 2.17.2