From patchwork Mon Dec 28 06:57:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 85762 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2ABBA09FF; Mon, 28 Dec 2020 07:55:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9E24C9B4; Mon, 28 Dec 2020 07:54:59 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 32795C9B2 for ; Mon, 28 Dec 2020 07:54:58 +0100 (CET) IronPort-SDR: OMcJgAXXcHwCTEschg/HB6h8TCICeW4KYB55TCUsdf2M94Px7DJyf+yWFMV447WlMDM3dRLylQ bANtdGSZuzjA== X-IronPort-AV: E=McAfee;i="6000,8403,9847"; a="155558291" X-IronPort-AV: E=Sophos;i="5.78,454,1599548400"; d="scan'208";a="155558291" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2020 22:54:56 -0800 IronPort-SDR: jLy6kl3hLlsTTm6WSnLE2mtSG+epCxNnugxfIOrm/cNWEfNRVXeRWlHjGD04svJHmVcNiJnPuh HvrrhjZrPx0w== X-IronPort-AV: E=Sophos;i="5.78,454,1599548400"; d="scan'208";a="375510008" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2020 22:54:54 -0800 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Mon, 28 Dec 2020 14:57:16 +0800 Message-Id: <20201228065717.32677-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1 1/2] tests/TestSuite_runtime_vf_queue_number:the queue pairs number up to 256 for iavf 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" as the queue pairs number up to 256 queue pairs per VF, so change 17 to 257 for testing. Signed-off-by: Xie wei Tested-by: Xie,WeiX < weix.xie@intel.com> --- tests/TestSuite_runtime_vf_queue_number.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_runtime_vf_queue_number.py index 8d8a6f7b..1d7d536c 100644 --- a/tests/TestSuite_runtime_vf_queue_number.py +++ b/tests/TestSuite_runtime_vf_queue_number.py @@ -302,10 +302,10 @@ class TestRuntimeVfQn(TestCase): outstring = self.vm0_testpmd.execute_cmd(command_0, expected='# ') self.verify("Either rx or tx queues should be non-zero" in outstring, "The output of testpmd start is different from expect when set invalid VF queue number 0.") time.sleep(2) - command_17 = app_name + "-c %s -n %d %s -- -i %s" % ('0xf', self.dut.get_memory_channels(), gest_eal_param, ' --rxq=17 --txq=17') - outstring1 = self.vm0_testpmd.execute_cmd(command_17, expected='# ') - self.verify("rxq 17 invalid - must be >= 0 && <= 16" in outstring1, - "The output of testpmd start is different from expect when set invalid VF queue number 17.") + command_257 = app_name + "-c %s -n %d %s -- -i %s" % ('0xf', self.dut.get_memory_channels(), gest_eal_param, ' --rxq=257 --txq=257') + outstring1 = self.vm0_testpmd.execute_cmd(command_257, expected='# ') + self.verify("rxq 257 invalid - must be >= 0 && <= 256" in outstring1, + "The output of testpmd start is different from expect when set invalid VF queue number 257.") def test_set_valid_vf_qn_with_testpmd_func_cmd(self): """ @@ -341,14 +341,14 @@ class TestRuntimeVfQn(TestCase): :return: """ expect_str = ["Warning: Either rx or tx queues should be non zero", - "Fail: input rxq (17) can't be greater than max_rx_queues (16) of port 0", - "Fail: input txq (17) can't be greater than max_tx_queues (16) of port 0"] + "Fail: input rxq (257) can't be greater than max_rx_queues (256) of port 0", + "Fail: input txq (257) can't be greater than max_tx_queues (256) of port 0"] host_eal_param = '-w %s --file-prefix=test1 --socket-mem 1024,1024' % self.pf_pci self.host_testpmd.start_testpmd(self.pmdout.default_cores, param='', eal_param=host_eal_param) gest_eal_param = '-w %s --file-prefix=test2' % self.vm_dut_0.ports_info[0]['pci'] self.vm0_testpmd = PmdOutput(self.vm_dut_0) self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param, param='') - for invalid_qn in [0, 17]: + for invalid_qn in [0, 257]: self.vm0_testpmd.execute_cmd('port stop all') rxq_output = self.vm0_testpmd.execute_cmd('port config all rxq %d' % invalid_qn) txq_output = self.vm0_testpmd.execute_cmd('port config all txq %d' % invalid_qn) From patchwork Mon Dec 28 06:57:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 85763 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 151A0A09FF; Mon, 28 Dec 2020 07:55:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EAD5DC9D6; Mon, 28 Dec 2020 07:55:01 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id EDD16C9C0 for ; Mon, 28 Dec 2020 07:54:58 +0100 (CET) IronPort-SDR: u8PZT952ZlGlMj2oThT2u3MgGcD8Jf6uxnD+/hyxE+nMhdlUt0nrys8kg6Sg9L0uhnMVXBifNd 8j3GtXTJK5eg== X-IronPort-AV: E=McAfee;i="6000,8403,9847"; a="155558292" X-IronPort-AV: E=Sophos;i="5.78,454,1599548400"; d="scan'208";a="155558292" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2020 22:54:57 -0800 IronPort-SDR: oR0njm/NEOYP9zf9RI9TGp4hfWq1cQ9nK/Dlx6YFt1k+czbz05R8ctMkDeEOICEGKhAaqWHDMi NBln4OXv5HpQ== X-IronPort-AV: E=Sophos;i="5.78,454,1599548400"; d="scan'208";a="375510014" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2020 22:54:56 -0800 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Mon, 28 Dec 2020 14:57:17 +0800 Message-Id: <20201228065717.32677-2-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201228065717.32677-1-weix.xie@intel.com> References: <20201228065717.32677-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 2/2] tests/TestSuite_runtime_vf_queue_number_kernel:the queue pairs number up to 256 for iavf 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" as the queue pairs number up to 256 queue pairs per VF, so change 17 to 257 for testing. Signed-off-by: Xie wei Tested-by: Xie,WeiX < weix.xie@intel.com> --- tests/TestSuite_runtime_vf_queue_number_kernel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py b/tests/TestSuite_runtime_vf_queue_number_kernel.py index fe4bea07..3daf2347 100644 --- a/tests/TestSuite_runtime_vf_queue_number_kernel.py +++ b/tests/TestSuite_runtime_vf_queue_number_kernel.py @@ -204,7 +204,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase): self.check_result(nr_queue, out, out2, pkts_num, count, misc) def test_set_invalid_vf_queue_num_command_line(self): - invalid_queue_num = [0, 17] + invalid_queue_num = [0, 257] for i in invalid_queue_num: self.vm0_testpmd = PmdOutput(self.vm_dut_0) self.vm_dut_0.session_secondary = self.vm_dut_0.new_session() @@ -215,7 +215,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase): self.verify('Either rx or tx queues should be non-zero' in out, "queue number can't be zero") else: # the dpdk output non-zero conflict with >=0, to be fixed... - self.verify('txq 17 invalid - must be >= 0 && <= 16' in out, "queue number is too big") + self.verify('txq 257 invalid - must be >= 0 && <= 256' in out, "queue number is too big") def test_set_valid_vf_queue_num_with_function(self): random_queue = random.randint(2, 15) @@ -270,7 +270,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase): self.check_result(nr_queue, out, out2, pkts_num, count, misc) def test_set_invalid_vf_queue_num_with_testpmd_command(self): - invalid_queue_num = [0, 17] + invalid_queue_num = [0, 257] self.vm0_testpmd = PmdOutput(self.vm_dut_0) eal_param = '-w %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0} self.vm0_testpmd.start_testpmd("all", eal_param=eal_param) @@ -287,7 +287,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase): self.verify('Either rx or tx queues should be non zero' in out, "queue number can't be zero") else: out = self.vm0_testpmd.execute_cmd("port config all rxq %s" % i) - self.verify("input rxq (17) can't be greater than max_rx_queues (16) of port 0" in out, + self.verify("input rxq (257) can't be greater than max_rx_queues (256) of port 0" in out, "queue number is too big") self.vm0_testpmd.execute_cmd("clear port stats all") time.sleep(1)