From patchwork Fri Jun 24 07:17:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 113415 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A68BA0032; Fri, 24 Jun 2022 09:52:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22398415D7; Fri, 24 Jun 2022 09:52:54 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 6584240A87 for ; Fri, 24 Jun 2022 09:52:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656057172; x=1687593172; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4MbkViyndhlV8RNC7wocP818QF6M8FAim3Am4K0xjHQ=; b=ltFr94jFs8HXB0tTKMtLsXLyuCCJhLwpWLPP9qlKfbMNns3KFrc2X85v yJrdAHUF2cZ05JFS9A/IMpk9n2ANM33790DW64SULYXHnlj63RC8l2PV8 qZQKeadTtfU+/7DTepYo+UtB6wOdYe6znMWNKrfedtx7FLnzH7xMV27LZ 75XkFgPa8KHBd6zy7n2OxSrIpE37wtJ/ZvRmB0uX8Rbvrn7jHVsnLGMRo alaFi7oDOBmNAa7q606t2eKklxBziRYhoUGBWOrQNZT1DPnAkJdyXhUWW dTajdk+cxCANsuqwdI7YqE3D5MBPUe3V3GIK1oDSfRlY/+JCvj4hLF/Kh g==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="269677687" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="269677687" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:52:51 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="621640102" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:52:49 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 1/2] test_plans/*: modify script according to dpdk code change Date: Fri, 24 Jun 2022 03:17:03 -0400 Message-Id: <20220624071704.6651-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues) modify the plan to adapt to this change. Signed-off-by: Lingli Chen --- test_plans/dynamic_queue_test_plan.rst | 4 ++-- test_plans/queue_start_stop_test_plan.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_plans/dynamic_queue_test_plan.rst b/test_plans/dynamic_queue_test_plan.rst index 96cfcb8a..d22068a0 100644 --- a/test_plans/dynamic_queue_test_plan.rst +++ b/test_plans/dynamic_queue_test_plan.rst @@ -94,7 +94,7 @@ Stop one Tx queue on port 0:: Set txonly forward, start testpmd -Start testpmd, then stop, check this stopped queue only transmits 255 packets +Start testpmd, then stop, check this stopped queue not display Setup this stopped queue on the port:: @@ -162,7 +162,7 @@ Stop one Tx queue on port 0:: Set txonly forward, start testpmd -Start testpmd, then stop, check this stopped queue only transmits 255 packets +Start testpmd, then stop, check this stopped queue not display Reconfigure ring size as 512 for the stopped queues on port 0:: diff --git a/test_plans/queue_start_stop_test_plan.rst b/test_plans/queue_start_stop_test_plan.rst index cf660710..e895076d 100644 --- a/test_plans/queue_start_stop_test_plan.rst +++ b/test_plans/queue_start_stop_test_plan.rst @@ -43,7 +43,7 @@ This case support PF (Intel® Ethernet 700 Series), VF (Intel® Ethernet 700 Ser #. Start packet generator to transmit and not receive packets #. Run "port 0 rxq 0 start" to start rxq 0 in port 0 #. Run "port 1 txq 1 stop" to start txq 0 in port 1 -#. Start packet generator to transmit and not receive packets but in testpmd it is a "ports 0 queue 0 received 1 packages" print +#. Start packet generator to transmit and not receive packets #. Run "port 1 txq 1 start" to start txq 0 in port 1 #. Start packet generator to transmit and receive packets #. Test it again with VF From patchwork Fri Jun 24 07:17:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 113416 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48C0AA0093; Fri, 24 Jun 2022 09:52:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 437124280C; Fri, 24 Jun 2022 09:52:55 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 5F4F240A87 for ; Fri, 24 Jun 2022 09:52:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656057173; x=1687593173; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l03vtg4CqX7eHEHovMu6y16UaPgksJvxalrehDgqbLA=; b=cDOMtEqoezDyD0MY/KzAbnnl+KaQnBtLn8za8LOTkL5PcdwhE67I56TT k+bdbLAx/rhs8I98pVCZCTKGCXZZQm0LEQ/DGlb3PT94Qd8/pOhDr9FJv Opk6nvSIwiU3N/4T5mFkB16KlIlNyArCkaHC3acPTn+VQuxPwNiw8SqNp q6cNAERVOQ5aP3qNOnA3okh6+r8nLmOqStd/D7znuE2g7YUku1K2Ic3/a wg2b9z1ZO3gJyFW9sDICFALE+2PWoEYhEddH2Hp3J60NaaoL8ybcL9C4e 8my1kHfcB62S4MLuUyObnej985d6KVK35RJqPlVbSqAr+yB51Cfy/+JiU g==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="269677692" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="269677692" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:52:53 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="621640115" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:52:51 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 2/2] tests/*: modify script according to dpdk code change Date: Fri, 24 Jun 2022 03:17:04 -0400 Message-Id: <20220624071704.6651-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220624071704.6651-1-linglix.chen@intel.com> References: <20220624071704.6651-1-linglix.chen@intel.com> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues) dynamic_queue: Tx stopped queue not display queue_start_stop: after set “port 0 txq 0 stop”, no print in testpmd Signed-off-by: Lingli Chen --- tests/TestSuite_dynamic_queue.py | 15 ++++++++------- tests/TestSuite_queue_start_stop.py | 12 ------------ 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py index ebbe869c..5a826bd1 100644 --- a/tests/TestSuite_dynamic_queue.py +++ b/tests/TestSuite_dynamic_queue.py @@ -163,13 +163,14 @@ class TestDynamicQueue(TestCase): out = self.dut_testpmd.execute_cmd("stop") tx_num = qringsize - 1 - if self.nic in ["cavium_a063", "cavium_a064"]: - self.verify("TX-packets: 0" in out, "Fail to stop txq at runtime") - else: - # Check Tx stopped queue only transmits qringsize-1 packets - self.verify( - "TX-packets: %d" % tx_num in out, "Fail to stop txq at runtime" - ) + # check rxq start successful + self.verify("TX-packets:" in out, "txq start failed") + # check Tx stopped queue not display + self.verify( + "TX Port= 0/Queue={:>2}".format(queue) not in out, + "Fail to stop txq at runtime", + ) + if chgflag == 1: chg_qringsize = qringsize % 1024 + 256 if qringsize == 512: diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index 1df59a1b..f5028e8b 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -134,21 +134,9 @@ class TestQueueStartStop(TestCase): self.dut.send_expect("port 0 txq 0 stop", "testpmd>") self.dut.send_expect("start", "testpmd>") self.check_forwarding([0, 0], self.nic, received=False) - out = self.dut.get_session_output() except Exception as e: raise IOError("queue start/stop forward failure: %s" % e) - if self.nic == "cavium_a063": - self.verify( - "ports 0 queue 0 receive 4 packages" in out, - "start queue revice package failed, out = %s" % out, - ) - else: - self.verify( - "ports 0 queue 0 receive 1 packages\r\n" * 4 in out, - "start queue revice package failed, out = %s" % out, - ) - try: # start tx queue test print("test start rx and tx queue")