From patchwork Thu Jun 23 06:53:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 113315 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 249B5A0545; Thu, 23 Jun 2022 09:29:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE205427EE; Thu, 23 Jun 2022 09:29:19 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 0F4504067B for ; Thu, 23 Jun 2022 09:29:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655969359; x=1687505359; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=2hlXKrJRmuyf+5C4dCH3bV2mRMLan8KmT6RlU/IUGrs=; b=btIVJbgv6ugKZ6sKf1B6N5JT9M7mTvhvzLmflztXwM21QN/DWFB3a3dV 9qG4tdHIjzXA1aBFZRpsTFSw5tUhwq4sHksoqklWK4vRTRsVU1Vl+0bfe yePCZ8GKD8T00B8WnkS/tudqmjJITd9s+jHwpnaSjLsiA9HobJmo4H5IA btgdCvUStuYD6LPkH9ph6UHEWWm4zXK0L6QS3it0foOaZZAqtYhr4V1Hu 0sEoZSZQJq07wb2E7qis/hIfK2OAlehBjvFhom8l2stUVdGIKVaaYjffk WLt7UNBFAzKEkreNhJzog/GyCT0iPAvhXklrEVP1ig8gx/S5SwX7ZKsND Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280697687" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280697687" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:16 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592582590" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:15 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 1/4] test_plans/dynamic_queue: modify script according to dpdk code change Date: Thu, 23 Jun 2022 02:53:33 -0400 Message-Id: <20220623065336.21482-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623065336.21482-1-linglix.chen@intel.com> References: <20220623065336.21482-1-linglix.chen@intel.com> 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 ++-- 1 file changed, 2 insertions(+), 2 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:: From patchwork Thu Jun 23 06:53:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 113316 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 1B702A00C3; Thu, 23 Jun 2022 09:29:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0586D40DDB; Thu, 23 Jun 2022 09:29:21 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 5EE7B4069D for ; Thu, 23 Jun 2022 09:29:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655969359; x=1687505359; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ASUCYegfs3BLuz/P57SDM7rI1ioA83jjXj1PkE8EZ9I=; b=E544jw+cCjvqw3IEtsocjkTJUV36cePXMBhc5TE/wkwrlhb+lCVuEdG+ FG+8+ygU2QkL1yuIXAxGNnSGmu8vmbO/lirUQCcWz5JQ9xDeNi7OrYRET 6Slo3OrcdFQb8j6aL6HLUfBTU3+cLLctd1sgblDU9n0DFZcTE2CPFCbc6 br6Eol5JcJc+twwyc6YaitxhemEWiLUdBsdZo/1fIOTACi3mgWZzYZVsK W1/eAwu9JWWi1tPZyFeswMJy81WyF1ecJ81wM5NpGcxTu8Svo5fVBDMCA 4i7kNlQenATuHhULqLXsBtaWcJruNFl6q98d8VR9YsfgJS2kTeXNHhxCS w==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280697688" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280697688" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:18 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592582597" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:16 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 2/4] tests/dynamic_queue: modify script according to dpdk code change Date: Thu, 23 Jun 2022 02:53:34 -0400 Message-Id: <20220623065336.21482-3-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623065336.21482-1-linglix.chen@intel.com> References: <20220623065336.21482-1-linglix.chen@intel.com> 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) Tx stopped queue not display Signed-off-by: Lingli Chen --- tests/TestSuite_dynamic_queue.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py index ebbe869c..21fcba57 100644 --- a/tests/TestSuite_dynamic_queue.py +++ b/tests/TestSuite_dynamic_queue.py @@ -163,12 +163,16 @@ 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") + # Check Tx stopped queue not display + if queue < 10: + self.verify( + "TX Port= 0/Queue= %d" % queue not 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" + "TX Port= 0/Queue=%d" % queue not in out, + "Fail to stop txq at runtime", ) if chgflag == 1: chg_qringsize = qringsize % 1024 + 256 From patchwork Thu Jun 23 06:53:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 113317 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 6E9DCA0545; Thu, 23 Jun 2022 09:29:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37F1D4280E; Thu, 23 Jun 2022 09:29:21 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D9A7140DDB for ; Thu, 23 Jun 2022 09:29:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655969360; x=1687505360; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fu++pEPApzMu3jd7Eg2vH4nwDjH47lNPkBrIM/Sa3tc=; b=DE/k8648MRAoAtEHKzzNlbZx6A09RWR5P0cNKcTX82+i7+I7bei7/M1e PKitBqK1P3BVUAq8GpXc/2ilPBb3n1FBWET53wtnMPXB2JQE1l9rgaTen 6RSAWZQyRje5mQm19PUMikPFQgkJCG5Q0/+UhzzN5KQYwAImgXo/coWAR BM7d8oq/dlsIUviTPVA5hwLZk2Eo6RFBNDoB9S8xbTSYgtOrsfA/+ExOL am6npKlfOqc8eoTLf0pK+LuXkl8IKi2UtfKEEJt+QS10IFLePfj7nXH4c O7sBTjRepWBlDfRnLHaYfWHCJviVFG42SZxa/GG4a6O11WW6kN0XM1vNi g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280697707" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280697707" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:19 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592582604" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:18 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 3/4] test_plans/queue_start_stop: modify script according to dpdk code change Date: Thu, 23 Jun 2022 02:53:35 -0400 Message-Id: <20220623065336.21482-4-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623065336.21482-1-linglix.chen@intel.com> References: <20220623065336.21482-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) modify the plan to adapt to this change. Signed-off-by: Lingli Chen --- test_plans/queue_start_stop_test_plan.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Thu Jun 23 06:53:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 113318 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 58EADA00C3; Thu, 23 Jun 2022 09:29:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5430242802; Thu, 23 Jun 2022 09:29:24 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 6AC354067B for ; Thu, 23 Jun 2022 09:29:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655969362; x=1687505362; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=h8PCseHa/buxMgkkR5xV1TaqUt2byifUSI/Vpb4HNgg=; b=Sn4mXEBAvQ2XMjHGBrlX5NdRgbrQEJ8rZ5tB5HHBf9I9fIfOIpXf4ECD EyQ6DkzB5pdTpIY87NWlrrkSyFvtS+mNsQI5UDUL+a5mxTYMBp5wc3NiU olREq1Zc0CirhCwckHbOp2yw03BkLuLAceQWSvRR8iMF5mdiACYuSWfz8 iDBxkqbubh1BF0HHuIUdSRXt3dghsfSAFYN/6OQx28CUcIvgldAo5uBJ/ ksbhvd5fZYqYx1iUu1cCyQl03Re13wES1eKnylgSKDiUumau/bwiBsy9T 4BqhAOiJwuYpvvt9jjE/YMXtRpwjXIrj/pAnTCLB85gyULuuVr3kU2d/q Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280697723" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280697723" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:21 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592582616" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:19 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 4/4] tests/queue_start_stop: modify script according to dpdk code change Date: Thu, 23 Jun 2022 02:53:36 -0400 Message-Id: <20220623065336.21482-5-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623065336.21482-1-linglix.chen@intel.com> References: <20220623065336.21482-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) after set “port 0 txq 0 stop”, no print in testpmd Signed-off-by: Lingli Chen --- tests/TestSuite_queue_start_stop.py | 12 ------------ 1 file changed, 12 deletions(-) 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")