From patchwork Tue Dec 8 10:06:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84793 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 6A4FEA09E5; Tue, 8 Dec 2020 11:03:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 040E0C982; Tue, 8 Dec 2020 11:03:48 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id DA88BC922 for ; Tue, 8 Dec 2020 11:03:43 +0100 (CET) IronPort-SDR: qCpLNqP5aNCvx6LFWwnXbKnxBCdvD12NOxG0MYrQw//yGeWus992P57F80ZOZ2L9XuTgw5/O6S BZJTM6OjZM1A== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293329" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293329" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:36 -0800 IronPort-SDR: APQ98xfF3OR2Amdg8fGBUZ6keN+8hkdHHcLCFjyKTSPWczIe8ziu9CZ+xCcEKafu74soBzNXqU 4dv2PCbb/TYw== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575512" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:34 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:00 +0800 Message-Id: <20201208100627.9792-2-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 01/28] tests/TestSuite_hello_world:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_hello_world.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_hello_world.py b/tests/TestSuite_hello_world.py index cd843b53..8e2ffd90 100644 --- a/tests/TestSuite_hello_world.py +++ b/tests/TestSuite_hello_world.py @@ -66,8 +66,8 @@ class TestHelloWorld(TestCase): # get the mask for the first core cores = self.dut.get_core_list('1S/1C/1T') - coreMask = utils.create_mask(cores) - cmdline = "./%s -n 1 -c " % self.app_helloworld_path + coreMask + eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T') + cmdline = "./%s %s" % (self.app_helloworld_path, eal_para) out = self.dut.send_expect(cmdline, "# ", 30) self.verify("hello from core %s" % cores[0] in out, "EAL not started on core%s" % cores[0]) @@ -86,9 +86,9 @@ class TestHelloWorld(TestCase): else: available_max_lcore = len(cores) + 1 - coreMask = utils.create_mask(cores[:available_max_lcore - 1]) + eal_para = self.dut.create_eal_parameters(cores=cores[:available_max_lcore - 1]) - cmdline = "./%s -n 1 -c " % self.app_helloworld_path + coreMask + cmdline = "./%s %s " % (self.app_helloworld_path, eal_para) out = self.dut.send_expect(cmdline, "# ", 50) for i in range(available_max_lcore - 1): self.verify("hello from core %s" % cores[i] in out, "EAL not started on core%s" % cores[i]) From patchwork Tue Dec 8 10:06:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84790 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 20624A09E5; Tue, 8 Dec 2020 11:03:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B8BBC938; Tue, 8 Dec 2020 11:03:45 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 4293CA3 for ; Tue, 8 Dec 2020 11:03:43 +0100 (CET) IronPort-SDR: 9n/1OGOlZC7c3kyCVVUhIqpMoHe2EU1tUil82XZN9j0R+gEH/32pQPkOHkz6cMcIiQrMmH+Ytw IYtSkeZrywtw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293332" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293332" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:37 -0800 IronPort-SDR: 9cd4DyyxghWg8SzxB0ifOp8fnfhIaz0dwn1pRXR0xBo1IJYpx+LhdgC4bOshGb24uImFmDUD2v NTmSKtHYfKTQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575533" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:36 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:01 +0800 Message-Id: <20201208100627.9792-3-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 02/28] tests/TestSuite_hotplug:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_hotplug.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_hotplug.py b/tests/TestSuite_hotplug.py index 22df2306..f40c291c 100644 --- a/tests/TestSuite_hotplug.py +++ b/tests/TestSuite_hotplug.py @@ -55,6 +55,7 @@ class TestPortHotPlug(TestCase): self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 2, "Insufficient ports") cores = self.dut.get_core_list("1S/4C/1T") + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.coremask = utils.create_mask(cores) self.port = len(self.dut_ports) - 1 if self.drivername == "vfio-pci:noiommu": @@ -93,7 +94,7 @@ class TestPortHotPlug(TestCase): """ first run testpmd after attach port """ - cmd = "%s -c %s -n %s -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()) + cmd = "%s %s -- -i" % (self.path, self.eal_para) self.dut.send_expect(cmd, "testpmd>", 60) session_secondary = self.dut.new_session() session_secondary.send_expect( @@ -137,7 +138,7 @@ class TestPortHotPlug(TestCase): "./usertools/dpdk-devbind.py --bind=%s %s" % (self.driver_name, self.dut.ports_info[self.port]['pci']), "#", 60) self.dut.close_session(session_secondary) - cmd = "%s -c %s -n %s -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()) + cmd = "%s %s -- -i" % (self.path, self.eal_para) self.dut.send_expect(cmd, "testpmd>", 60) self.detach(self.port) self.attach(self.port) From patchwork Tue Dec 8 10:06:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84789 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 735B4A09E6; Tue, 8 Dec 2020 11:03:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E884C914; Tue, 8 Dec 2020 11:03:45 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D8CAD98 for ; Tue, 8 Dec 2020 11:03:42 +0100 (CET) IronPort-SDR: VhvsUdvPXa4Sy2NkWqDxaA0/73+buF44FeI6AqixHAiiWn0CmO4Xb8ZPSrwUkpQ8rdU24xosip zGTKNeCR0OSw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293337" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293337" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:38 -0800 IronPort-SDR: asXskWvVrBQ5btL8UTWmn9vG7NC+D+Vk5o+SHwdZ/Sl6kznRHU5It/dNjuT5/W0ackD34xdklW QAKFFNuhoDVA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575549" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:37 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:02 +0800 Message-Id: <20201208100627.9792-4-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 03/28] tests/TestSuite_inline_ipsec:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_inline_ipsec.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_inline_ipsec.py b/tests/TestSuite_inline_ipsec.py index 2b599374..2b9db77e 100644 --- a/tests/TestSuite_inline_ipsec.py +++ b/tests/TestSuite_inline_ipsec.py @@ -93,6 +93,7 @@ class TestInlineIpsec(TestCase): out = self.dut.build_dpdk_apps("./examples/ipsec-secgw") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") + self.eal_para = self.dut.create_eal_parameters(cores=[20, 21]) self.cfg_prepare() @@ -207,11 +208,11 @@ class TestInlineIpsec(TestCase): verify Ipsec receive package """ if jumboframe is not None: - cmd = self.path + " -l 20,21 -w %s -w %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 -j 9200 --mtu %s --config='%s' -f %s" % ( - self.portpci_0, self.portpci_1, jumboframe, config, file_name) + cmd = self.path + " %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 -j 9200 --mtu %s --config='%s' -f %s" % ( + self.eal_para, jumboframe, config, file_name) else: - cmd = self.path + " -l 20,21 -w %s -w %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( - self.portpci_0, self.portpci_1, config, file_name) + cmd = self.path + " %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( + self.eal_para, config, file_name) self.dut.send_expect(cmd, "IPSEC", 60) @@ -341,8 +342,8 @@ class TestInlineIpsec(TestCase): """ test Ipsec Encryption Decryption """ - cmd = self.path + " -l 20,21 -w %s -w %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( - self.portpci_0, self.portpci_1, '(0,0,21),(1,0,21)', '/root/dpdk/enc_dec.cfg') + cmd = self.path + " %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( + self.eal_para, '(0,0,21),(1,0,21)', '/root/dpdk/enc_dec.cfg') self.dut.send_expect(cmd, "IPSEC", 60) session_receive = self.tester.create_session( name='receive_encryption_package') From patchwork Tue Dec 8 10:06:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84788 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 496AFA09E5; Tue, 8 Dec 2020 11:03:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0CE2CA3; Tue, 8 Dec 2020 11:03:44 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 4181D98 for ; Tue, 8 Dec 2020 11:03:41 +0100 (CET) IronPort-SDR: PBFWjflb0j6wT0ZWTXhKR6tDc83SOsGoIyqeOaXsBF3pi4d0zNXz993cxNsf1EWRdcxDHCx1LS ZbmvewYyFPrg== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293343" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293343" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:40 -0800 IronPort-SDR: U8GF/iAuvkGBuY5jBz5DytrOUjBsZn289Dgt4L7Dmy95KEoFIGzs7Cw6vDkg2Kpt8AbwQLjc3E p3ZLKdidkudg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575565" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:39 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:03 +0800 Message-Id: <20201208100627.9792-5-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 04/28] tests/TestSuite_interrupt_pmd:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_interrupt_pmd.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_interrupt_pmd.py b/tests/TestSuite_interrupt_pmd.py index 752c673a..e5e3751d 100644 --- a/tests/TestSuite_interrupt_pmd.py +++ b/tests/TestSuite_interrupt_pmd.py @@ -50,6 +50,7 @@ class TestInterruptPmd(TestCase): self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 2, "Insufficient ports") cores = self.dut.get_core_list("1S/4C/1T") + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.coremask = utils.create_mask(cores) self.path = self.dut.apps_name["l3fwd-power"] @@ -88,21 +89,25 @@ class TestInterruptPmd(TestCase): pass def test_different_queue(self): - cmd = "%s -c %s -n 4 -- -p 0x3 -P --config='(0,0,1),(1,0,2)' "% (self.path, self.coremask) + cmd = "%s %s -- -p 0x3 -P --config='(0,0,1),(1,0,2)' "% (self.path, self.eal_para) self.dut.send_expect(cmd, "L3FWD_POWER", 60) portQueueLcore = self.trafficFlow["Flow1"] self.verifier_result(2, 2, portQueueLcore) self.dut.kill_all() - cmd = "%s -c 0x3f -n 4 -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),(0,4,4)' "% self.path + cores = list(range(6)) + eal_para = self.dut.create_eal_parameters(cores=cores) + cmd = "%s %s -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),(0,4,4)' "% (self.path, eal_para) self.dut.send_expect(cmd, "L3FWD_POWER", 120) portQueueLcore = self.trafficFlow["Flow2"] self.verifier_result(20, 1, portQueueLcore) self.dut.kill_all() - cmd = "%s -c 0xffffff -n 4 -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),\ + cores = list(range(24)) + eal_para = self.dut.create_eal_parameters(cores=cores) + cmd = "%s %s -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),\ (0,4,4),(0,5,5),(0,6,6),(0,7,7),(1,0,8),(1,1,9),(1,2,10),(1,3,11),\ - (1,4,12),(1,5,13),(1,6,14)' "% self.path + (1,4,12),(1,5,13),(1,6,14)' "% (self.path, eal_para) self.dut.send_expect(cmd, "L3FWD_POWER", 60) portQueueLcore = self.trafficFlow["Flow3"] From patchwork Tue Dec 8 10:06:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84791 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 CBE63A09E5; Tue, 8 Dec 2020 11:03:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ADC5BC952; Tue, 8 Dec 2020 11:03:47 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 5BDE7C906 for ; Tue, 8 Dec 2020 11:03:44 +0100 (CET) IronPort-SDR: vhqO/gyTXcD4NABV+dPMKKO/qzTzLP9tJ6INL/v0ADfLAWz+WFk/Mj70YF6rdxAkP/qP9C4xzH wNZyBV70Lx3g== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293344" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293344" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:41 -0800 IronPort-SDR: oLlcJZq1qTYBfDi49clld0yDpZ7UXhfe3zOyq/b1whwb0hqdFTfHNtOeSR6zPmp1DOS9pLdvQz ZIgwvR+v1iWA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575582" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:40 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:04 +0800 Message-Id: <20201208100627.9792-6-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 05/28] tests/TestSuite_ip_pipeline:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_ip_pipeline.py | 50 +++++++++++++++------------------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline.py index c9a473ec..0d5a114b 100644 --- a/tests/TestSuite_ip_pipeline.py +++ b/tests/TestSuite_ip_pipeline.py @@ -217,6 +217,8 @@ class TestIPPipeline(TestCase): self.vf2_mac = "00:11:22:33:44:57" self.vf3_mac = "00:11:22:33:44:58" + ports = [self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci] + self.eal_para = self.dut.create_eal_parameters(cores=list(range(2)), ports=ports) self.sriov_vfs_port = [] self.session_secondary = self.dut.new_session() @@ -245,11 +247,9 @@ class TestIPPipeline(TestCase): cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/route.cli" % self.dut_p3_pci self.dut.send_expect(cmd, "# ", 20) - DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) SCRIPT_FILE = "./examples/ip_pipeline/examples/route.cli" - cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_PORTS, SCRIPT_FILE) + cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, self.eal_para, SCRIPT_FILE) self.dut.send_expect(cmd, "30:31:32:33:34:35", 60) #rule 0 test @@ -313,11 +313,9 @@ class TestIPPipeline(TestCase): cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/firewall.cli" % self.dut_p3_pci self.dut.send_expect(cmd, "# ", 20) - DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) SCRIPT_FILE = "./examples/ip_pipeline/examples/firewall.cli" - cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_PORTS, SCRIPT_FILE) + cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, self.eal_para, SCRIPT_FILE) self.dut.send_expect(cmd, "fwd port 3", 60) #rule 0 test @@ -381,11 +379,9 @@ class TestIPPipeline(TestCase): cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/flow.cli" % self.dut_p3_pci self.dut.send_expect(cmd, "# ", 20) - DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) SCRIPT_FILE = "./examples/ip_pipeline/examples/flow.cli" - cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_PORTS, SCRIPT_FILE) + cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, self.eal_para, SCRIPT_FILE) self.dut.send_expect(cmd, "fwd port 3", 60) #rule 0 test @@ -449,11 +445,9 @@ class TestIPPipeline(TestCase): cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.dut_p3_pci self.dut.send_expect(cmd, "# ", 20) - DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) SCRIPT_FILE = "./examples/ip_pipeline/examples/l2fwd.cli" - cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_PORTS, SCRIPT_FILE) + cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, self.eal_para, SCRIPT_FILE) self.dut.send_expect(cmd, "fwd port 2", 60) #rule 0 test @@ -519,22 +513,22 @@ class TestIPPipeline(TestCase): cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[0][0].pci self.dut.send_expect(cmd, "# ", 20) - DUT_PF_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) - PF_SCRIPT_FILE = "--file-prefix=pf --socket-mem 1024,1024" + DUT_PF_PORTS = [self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci] + PF_SCRIPT_FILE = "--socket-mem 1024,1024" - DUT_VF_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.sriov_vfs_port[0][0].pci, self.sriov_vfs_port[1][0].pci, self.sriov_vfs_port[2][0].pci, self.sriov_vfs_port[3][0].pci) + DUT_VF_PORTS = [self.sriov_vfs_port[0][0].pci, self.sriov_vfs_port[1][0].pci, self.sriov_vfs_port[2][0].pci, self.sriov_vfs_port[3][0].pci] VF_SCRIPT_FILE = "./examples/ip_pipeline/examples/l2fwd.cli" - pf_cmd = "{0} -c 0xf0 -n 4 {1} {2} -- -i".format(self.app_testpmd_path, DUT_PF_PORTS, PF_SCRIPT_FILE) + pf_eal_para = self.dut.create_eal_parameters(cores=list(range(4, 8)), prefix='pf', ports=DUT_PF_PORTS) + pf_cmd = "{0} {1} {2} -- -i".format(self.app_testpmd_path, pf_eal_para, PF_SCRIPT_FILE) self.dut.send_expect(pf_cmd, "testpmd> ", 60) self.dut.send_expect("set vf mac addr 0 0 %s" % self.vf0_mac, "testpmd> ", 30) self.dut.send_expect("set vf mac addr 1 0 %s" % self.vf1_mac, "testpmd> ", 30) self.dut.send_expect("set vf mac addr 2 0 %s" % self.vf2_mac, "testpmd> ", 30) self.dut.send_expect("set vf mac addr 3 0 %s" % self.vf3_mac, "testpmd> ", 30) - vf_cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_VF_PORTS, VF_SCRIPT_FILE) + vf_eal_para = self.dut.create_eal_parameters(cores=list(range(2)), ports=DUT_VF_PORTS) + vf_cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, vf_eal_para, VF_SCRIPT_FILE) self.session_secondary.send_expect(vf_cmd, "fwd port 2", 60) #rule 0 test @@ -599,11 +593,11 @@ class TestIPPipeline(TestCase): cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[0][0].pci self.dut.send_expect(cmd, "# ", 20) - DUT_VF_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.sriov_vfs_port[0][0].pci, self.sriov_vfs_port[1][0].pci, self.sriov_vfs_port[2][0].pci, self.sriov_vfs_port[3][0].pci) + DUT_VF_PORTS = [self.sriov_vfs_port[0][0].pci, self.sriov_vfs_port[1][0].pci, self.sriov_vfs_port[2][0].pci, self.sriov_vfs_port[3][0].pci] VF_SCRIPT_FILE = "./examples/ip_pipeline/examples/l2fwd.cli" - vf_cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_VF_PORTS, VF_SCRIPT_FILE) + vf_eal_para = self.dut.create_eal_parameters(cores=list(range(2)), ports=DUT_VF_PORTS) + vf_cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, vf_eal_para, VF_SCRIPT_FILE) self.session_secondary.send_expect(vf_cmd, "fwd port 2", 60) #rule 0 test @@ -665,11 +659,11 @@ class TestIPPipeline(TestCase): cmd = "sed -i -e 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/tap.cli" % self.dut_p1_pci self.dut.send_expect(cmd, "# ", 20) - DUT_PORTS = " -w {0} -w {1} "\ - .format(self.dut_p0_pci, self.dut_p1_pci) + DUT_PORTS = [self.dut_p0_pci, self.dut_p1_pci] SCRIPT_FILE = "./examples/ip_pipeline/examples/tap.cli" - cmd = "{0} -c 0x3 -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_PORTS, SCRIPT_FILE) + eal_para = self.dut.create_eal_parameters(cores=list(range(2)), ports=DUT_PORTS) + cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, eal_para, SCRIPT_FILE) self.dut.send_expect(cmd, "fwd port 3", 60) tap_session = self.dut.new_session() @@ -722,11 +716,11 @@ class TestIPPipeline(TestCase): cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/rss.cli" % self.dut_p3_pci self.dut.send_expect(cmd, "# ", 20) - DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\ - .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci) + DUT_PORTS = [self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci] SCRIPT_FILE = "./examples/ip_pipeline/examples/rss.cli" - cmd = "{0} -c 0x1f -n 4 {1} -- -s {2}".format(self.app_ip_pipline_path, DUT_PORTS, SCRIPT_FILE) + eal_para = self.dut.create_eal_parameters(cores=list(range(5)), ports=DUT_PORTS) + cmd = "{0} {1} -- -s {2}".format(self.app_ip_pipline_path, eal_para, SCRIPT_FILE) self.dut.send_expect(cmd, "PIPELINE3 enable", 60) #rule 0 test From patchwork Tue Dec 8 10:06:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84795 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 33444A09E5; Tue, 8 Dec 2020 11:03:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 642F7C9A2; Tue, 8 Dec 2020 11:03:48 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 2B6BAC926 for ; Tue, 8 Dec 2020 11:03:45 +0100 (CET) IronPort-SDR: PsLl2bAedTAU2AiAysGw3ag+j8+FB81DiFX88dEdRliqGLSU1XSvVSokiERCiVgxRmreMdD2iw DQRHTrP+EQ/Q== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293352" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293352" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:43 -0800 IronPort-SDR: VbxilmP93l1gcp51+E28FtMYJRQKajZohySA8X4KVFx11BW6LLBitQj6MNS7rPfAEbASqc3Ltp CUaoYCcyIfHQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575609" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:42 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:05 +0800 Message-Id: <20201208100627.9792-7-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 06/28] tests/TestSuite_ipfrag:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_ipfrag.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py index ba64e168..84725dad 100644 --- a/tests/TestSuite_ipfrag.py +++ b/tests/TestSuite_ipfrag.py @@ -124,19 +124,16 @@ class TestIpfrag(TestCase): self.verify("No such file" not in out, "compilation error 2") cores = self.dut.get_core_list("1S/1C/2T") + self.eal_para = self.dut.create_eal_parameters(cores='1S/1C/2T') coremask = utils.create_mask(cores) portmask = utils.create_mask([P0, P1]) numPortThread = len([P0, P1]) / len(cores) result = True errString = '' - eal_param = "" - for i in [P0, P1]: - eal_param += " -w %s" % self.dut.ports_info[i]['pci'] # run ipv4_frag self.app_ip_fragmentation_path = self.dut.apps_name['ip_fragmentation'] - self.dut.send_expect("%s -c %s -n %d %s -- -p %s -q %s" % (self.app_ip_fragmentation_path, coremask, - self.dut.get_memory_channels(), eal_param, portmask, + self.dut.send_expect("%s %s -- -p %s -q %s" % (self.app_ip_fragmentation_path, self.eal_para, portmask, int(numPortThread)), "Link [Uu]p", 120) time.sleep(2) From patchwork Tue Dec 8 10:06:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84794 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 D8297A09E5; Tue, 8 Dec 2020 11:03:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 39BFEC99C; Tue, 8 Dec 2020 11:03:48 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 567F4C926 for ; Tue, 8 Dec 2020 11:03:45 +0100 (CET) IronPort-SDR: 1fsTpy56Z9dvYacH2MO3CrC0dzm36mr+IzzcbemySLr7Yv65kpTcAuqTVhgjytbwkCVZLdNvLN DmLYVNGQPDYg== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293356" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293356" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:44 -0800 IronPort-SDR: qPi3w3SfMxrprNlV4M8aFNu1ID6NdGIL0EajVxm4e1IqCR61y3ZdWnsfVsRkobTvDFDIJ4EchF vdk+jDbs6f9g== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575632" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:43 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:06 +0800 Message-Id: <20201208100627.9792-8-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 07/28] tests/TestSuite_ipv4_reassembly:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_ipv4_reassembly.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py index f32bcea5..20164474 100644 --- a/tests/TestSuite_ipv4_reassembly.py +++ b/tests/TestSuite_ipv4_reassembly.py @@ -71,6 +71,7 @@ class IpReassemblyTestConfig(object): self.packets_config() def cpu_config(self): + self.eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T') self.core_list = self.test_case.dut.get_core_list('1S/1C/1T') self.core_mask = utils.create_mask(self.core_list) self.memory_channels = self.test_case.dut.get_memory_channels() @@ -148,8 +149,8 @@ class TestIpReassembly(TestCase): Execute the example app and checks for errors. """ - command = ('./%s -c {core_mask} ' % self.app_ip_reassembly_path + - '-n {memory_channels} -- -p {dut_port_mask} ' + + command = ('./%s {eal_para} ' % self.app_ip_reassembly_path + + '-- -p {dut_port_mask} ' + '--maxflows={maxflows} --flowttl={flowttl} {extra_args}') self.dut.send_expect( command.format(**self.test_config.__dict__), 'Link [Uu]p') From patchwork Tue Dec 8 10:06:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84796 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 3F800A09E5; Tue, 8 Dec 2020 11:03:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 942DEC9AC; Tue, 8 Dec 2020 11:03:48 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id C93AFC926 for ; Tue, 8 Dec 2020 11:03:46 +0100 (CET) IronPort-SDR: tqvtnJRjMm/tZRahoh5HDM474JCQCgWZLC/v8aVlVKRUCCHxuIUE1Kccl1Gl445jgLUs4vm6iz qt3qQG3L46HA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293366" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293366" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:46 -0800 IronPort-SDR: zwKoSHszkjMl1w7IXm7c5NFeIo9jDgSz+iQ4Mc+IS7ha/vjFtasuZ1LUm9X8QpbStUlFPBIte/ NH7lKVZ6aaqA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575656" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:44 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:07 +0800 Message-Id: <20201208100627.9792-9-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 08/28] tests/TestSuite_keep_alive:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_keep_alive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_keep_alive.py b/tests/TestSuite_keep_alive.py index 7bee4f03..4d350d79 100644 --- a/tests/TestSuite_keep_alive.py +++ b/tests/TestSuite_keep_alive.py @@ -67,8 +67,9 @@ class TestKeepAlive(TestCase): def test_keep_alive(self): """ Verify netmap compatibility with one port - """ - cmd = self.app_l2fwd_keepalive_path + " -c f -n 4 -- -q 8 -p ffff -K 10" + """ + eal_para = self.dut.create_eal_parameters(cores=list(range(4))) + cmd = self.app_l2fwd_keepalive_path + " %s -- -q 8 -p ffff -K 10" % eal_para self.dut.send_expect(cmd,"Port statistics",60) From patchwork Tue Dec 8 10:06:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84797 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 84E26A09E5; Tue, 8 Dec 2020 11:03:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C2461C906; Tue, 8 Dec 2020 11:03:49 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id CEA3EC962 for ; Tue, 8 Dec 2020 11:03:47 +0100 (CET) IronPort-SDR: EPa/x2HKQg3zBe1ivNjFP3+yRJx4ubgsWLCFm0BgWqAszZSmUouHXfJWi2Y4EnR84o5HcEjQda ohipgi5sSH2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293372" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293372" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:47 -0800 IronPort-SDR: 6vrYc0lLX8pUa/+DgRcyRsh0C5VjS+lP6kjTGoB1q9Yo7b0nps59Cuo5ZGKUWMRzEuXvLLT8AW zdM/XEXkolnA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575677" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:46 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:08 +0800 Message-Id: <20201208100627.9792-10-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 09/28] tests/TestSuite_kni:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_kni.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index a65fbf46..0a300539 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -341,9 +341,11 @@ class TestKni(TestCase): config_param = self.build_config_param() + eal_para = self.dut.create_eal_parameters( + cores=self.config['rx_cores'] + self.config['tx_cores'] + self.config['kernel_cores']) out_kni = self.dut.send_expect( - './%s -c %s -n %d -- -P -p %s %s -m &' % - (self.app_kni_path, core_mask, self.dut.get_memory_channels(), port_mask, config_param), + './%s %s -- -P -p %s %s -m &' % + (self.app_kni_path, eal_para, port_mask, config_param), "Link [Uu]p", 20) time.sleep(5) From patchwork Tue Dec 8 10:06:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84798 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 C0553A09E5; Tue, 8 Dec 2020 11:03:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 056D7C9B4; Tue, 8 Dec 2020 11:03:52 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B071EC8FA for ; Tue, 8 Dec 2020 11:03:50 +0100 (CET) IronPort-SDR: ekaHT5Ixqhhe2mokIcOdVVu8X/CAThEwC5doHu4weqxSmVKotvYGDgdsJuxxkOEDoVGG4Wd8de 6L+93srTMtaw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293374" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293374" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:48 -0800 IronPort-SDR: sR/KEkV70/Ql1551xJI9lhJFCWcQBXvIIIXbg2diOhvQTMXrh0MD2EMoOSa+w4FAWvYg3uqwik c10LVXdsOG4A== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575699" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:47 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:09 +0800 Message-Id: <20201208100627.9792-11-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 10/28] tests/TestSuite_l2fwd_jobstats:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_l2fwd_jobstats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_l2fwd_jobstats.py b/tests/TestSuite_l2fwd_jobstats.py index c00e39c1..6c104168 100644 --- a/tests/TestSuite_l2fwd_jobstats.py +++ b/tests/TestSuite_l2fwd_jobstats.py @@ -56,6 +56,7 @@ class TestL2fwdJobstats(TestCase): cores = self.dut.get_core_list("1S/4C/1T") self.coremask = utils.create_mask(cores) + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') dut_port0 = self.dut_ports[0] dut_port1 = self.dut_ports[1] self.tx_ports = [dut_port0, dut_port1] @@ -76,7 +77,7 @@ class TestL2fwdJobstats(TestCase): Verify l2fwd jobstats is correct """ path = self.dut.apps_name["l2fwd-jobstats"] - cmd = path + " -c %s -n 4 -- -q 2 -p 0x03 -l" % (self.coremask) + cmd = path + " %s -- -q 2 -p 0x03 -l" % (self.eal_para) self.dut.send_expect(cmd, "Port statistics", 60) self.scapy_send_packet(100000) From patchwork Tue Dec 8 10:06:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84800 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 4BF7FA09E6; Tue, 8 Dec 2020 11:04:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 60ADDC9BA; Tue, 8 Dec 2020 11:03:54 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3996CC9BA for ; Tue, 8 Dec 2020 11:03:51 +0100 (CET) IronPort-SDR: bpRumVIRuiRuApl72fTxTrvNflOAtCL5Hh6D2XDrIknJHSCBHWFX0lkUJiEJcBSnzNj1csXoAP 5zCg6kYM4E2A== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293378" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293378" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:50 -0800 IronPort-SDR: THsekRk9dMxDMhI4O+pOjLrj3z6CHM0nDxMz3NMIxjvpXJPUBdCjiZhn7SPgCFDFWFr8r/mJni Gn/tI8zDAyaA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575718" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:49 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:10 +0800 Message-Id: <20201208100627.9792-12-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 11/28] tests/TestSuite_l3fwdacl:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_l3fwdacl.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_l3fwdacl.py b/tests/TestSuite_l3fwdacl.py index cc87e172..7e0ad989 100644 --- a/tests/TestSuite_l3fwdacl.py +++ b/tests/TestSuite_l3fwdacl.py @@ -172,8 +172,8 @@ class TestL3fwdacl(TestCase): if scalar: extra_args = '--alg="scalar"' - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" %s' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" %s' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db, @@ -591,8 +591,8 @@ class TestL3fwdacl(TestCase): rule_list.append(TestL3fwdacl.default_rule) self.create_acl_ipv4_db(rule_list) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) @@ -610,8 +610,8 @@ class TestL3fwdacl(TestCase): rule_list.append(TestL3fwdacl.default_rule) self.create_acl_ipv6_db(rule_list) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) @@ -636,6 +636,7 @@ class TestL3fwdacl(TestCase): cores = self.get_core_list() self.verify(cores is not None, "Insufficient cores for speed testing") + self.eal_para = self.dut.create_eal_parameters(cores=self.get_core_list()) self.core_mask = utils.create_mask(cores) print("Core mask: %s" % self.core_mask) @@ -840,8 +841,8 @@ class TestL3fwdacl(TestCase): rule_list_ipv4.append(TestL3fwdacl.invalid_port_rule_ipv4) self.create_acl_ipv4_db(rule_list_ipv4) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) @@ -852,8 +853,8 @@ class TestL3fwdacl(TestCase): rule_list_ipv6.append(TestL3fwdacl.invalid_port_rule_ipv6) self.create_acl_ipv6_db(rule_list_ipv6) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) From patchwork Tue Dec 8 10:06:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84799 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 F1196A09E5; Tue, 8 Dec 2020 11:03:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 37DD3C926; Tue, 8 Dec 2020 11:03:54 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 27A05C926 for ; Tue, 8 Dec 2020 11:03:51 +0100 (CET) IronPort-SDR: hBS+Je/rhmoWRKVKo56Al2lpZH/xkAFFrp7KiLGFwXhn7v+fq1kXQrgzyDIKtTZKQVdcni9H9K Y9z7VIG1hQtA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293384" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293384" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:51 -0800 IronPort-SDR: cdiwK+BzRpT0LLRjfIoq6B+9Xk+pTr/ddaKNaZWJoWNAs5/rxPWpNartFA+nlB/DPNzi0w45G/ uPxS3CTvRlbw== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575737" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:50 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:11 +0800 Message-Id: <20201208100627.9792-13-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 12/28] tests/TestSuite_link_status_interrupt:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_link_status_interrupt.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_link_status_interrupt.py b/tests/TestSuite_link_status_interrupt.py index 99783544..e5fd69ed 100644 --- a/tests/TestSuite_link_status_interrupt.py +++ b/tests/TestSuite_link_status_interrupt.py @@ -54,6 +54,7 @@ class TestLinkStatusInterrupt(TestCase): cores = self.dut.get_core_list("1S/4C/1T") self.coremask = utils.create_mask(cores) self.portmask = utils.create_mask(self.dut_ports) + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.app_link_status_interrupt_path = self.dut.apps_name['link_status_interrupt'] # build sample app @@ -94,8 +95,8 @@ class TestLinkStatusInterrupt(TestCase): """ if self.drivername == "igb_uio": - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % ( - self.coremask, self.dut.get_memory_channels(), self.portmask) + cmdline = self.app_link_status_interrupt_path + " %s -- -p %s " % ( + self.eal_para, self.portmask) for mode in self.basic_intr_mode: self.dut.send_expect("rmmod -f igb_uio", "#", 20) self.dut.send_expect( @@ -110,8 +111,8 @@ class TestLinkStatusInterrupt(TestCase): self.dut.send_expect("^C", "#", 60) elif self.drivername == "vfio-pci": for mode in self.basic_intr_mode: - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( - self.coremask, self.dut.get_memory_channels(), mode, self.portmask) + cmdline = self.app_link_status_interrupt_path + " %s --vfio-intr=%s -- -p %s" % ( + self.eal_para, mode, self.portmask) self.dut.send_expect(cmdline, "statistics", 120) self.set_link_status_and_verify(self.dut_ports[0], 'Down') self.set_link_status_and_verify(self.dut_ports[0], 'Up') @@ -123,8 +124,8 @@ class TestLinkStatusInterrupt(TestCase): sent packet, check packets received. """ if self.drivername == "igb_uio": - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % ( - self.coremask, self.dut.get_memory_channels(), self.portmask) + cmdline = self.app_link_status_interrupt_path + "%s -- -p %s " % ( + self.eal_para, self.portmask) for mode in self.basic_intr_mode: self.dut.send_expect("rmmod -f igb_uio", "#", 20) self.dut.send_expect( @@ -147,8 +148,8 @@ class TestLinkStatusInterrupt(TestCase): self.dut.send_expect("^C", "#", 60) elif self.drivername == "vfio-pci": for mode in self.basic_intr_mode: - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( - self.coremask, self.dut.get_memory_channels(), mode, self.portmask) + cmdline = self.app_link_status_interrupt_path + " %s --vfio-intr=%s -- -p %s" % ( + self.eal_para, mode, self.portmask) self.dut.send_expect(cmdline, "Aggregate statistics", 60) for port in self.dut_ports: self.set_link_status_and_verify( From patchwork Tue Dec 8 10:06:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84801 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 92F9AA09E5; Tue, 8 Dec 2020 11:04:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84E2FC996; Tue, 8 Dec 2020 11:03:56 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 0CEDEC97C for ; Tue, 8 Dec 2020 11:03:54 +0100 (CET) IronPort-SDR: 64jfmoghcEV16uRMi4hwwwA0hSB3cO0SzUvBuuExMytRP1FU4j6RIs0lTepkZMu2Pi9fBd1r4o Ja8YfaHH15zQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293389" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293389" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:53 -0800 IronPort-SDR: rQPBcPNPDpFaTdgZpWxfimsit8GTfiztVpx5XPRxdiort2MF2UWZ3sKrWbTFXAQngY9PUPZabX MMYPJZNY4K/Q== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575757" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:51 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:12 +0800 Message-Id: <20201208100627.9792-14-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 13/28] tests/TestSuite_metering_and_policing:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_metering_and_policing.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_metering_and_policing.py b/tests/TestSuite_metering_and_policing.py index c481d451..4dec3198 100644 --- a/tests/TestSuite_metering_and_policing.py +++ b/tests/TestSuite_metering_and_policing.py @@ -149,17 +149,16 @@ class TestMeteringAndPolicing(TestCase): """ if len(self.dut_ports) == 2: portmask = "0x4" - Corelist = "0x7" + Corelist = [0, 1, 2] Servicecorelist = "0x4" if len(self.dut_ports) == 4: portmask = "0x10" - Corelist = "0x1f" + Corelist = [0, 1, 2, 3, 4] Servicecorelist = "0x10" self.path = self.dut.apps_name['test-pmd'] - cmd = self.path + " -c %s -s %s -n %d --vdev 'net_softnic0,firmware=%s' \ - -- -i --rxq=%d --txq=%d --portmask=%s --disable-rss" \ - % (Corelist, Servicecorelist, self.dut.get_memory_channels(), filename, self.port_id, self.port_id, portmask) - self.dut.send_expect(cmd, "testpmd>", 60) + self.pmd_out.start_testpmd(Corelist, "--rxq=%d --txq=%d --portmask=%s --disable-rss" + % (self.port_id, self.port_id, portmask), + eal_param="-s %s --vdev 'net_softnic0,firmware=%s'" % (Servicecorelist, filename)) def add_port_meter_profile(self, profile_id, cbs=400, pbs=500): """ @@ -246,7 +245,6 @@ class TestMeteringAndPolicing(TestCase): Send packet and check the stats. If expect_port == -1, the packet should be dropped. """ # check the ports are UP before sending packets - self.pmd_out = PmdOutput(self.dut) res = self.pmd_out.wait_link_status_up('all', 30) self.verify(res is True, 'there have port link is down') @@ -314,6 +312,7 @@ class TestMeteringAndPolicing(TestCase): if len(self.dut_ports) == 4: self.dut_p2_pci = self.dut.get_port_pci(self.dut_ports[2]) self.dut_p3_pci = self.dut.get_port_pci(self.dut_ports[3]) + self.pmd_out = PmdOutput(self.dut) self.dut_p0_mac = self.dut.get_mac_address(self.dut_ports[0]) self.port_id = len(self.dut_ports) self.copy_config_files_to_dut() From patchwork Tue Dec 8 10:06:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84802 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 EFDD1A09E5; Tue, 8 Dec 2020 11:04:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AC336C8FA; Tue, 8 Dec 2020 11:03:58 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 678A8C96E for ; Tue, 8 Dec 2020 11:03:55 +0100 (CET) IronPort-SDR: gEg6xQ0bVS/A75MIg72AhGjYVkXf0k8tAadTekzLXeAsuz49MUFn4f6vmgQchN4h/QaEfymk38 kWKNBo8VotXg== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293396" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293396" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:54 -0800 IronPort-SDR: n0QET9Em07Yf8dxinPcsKlbFsv4XKu/CRm1vImesF6+hgYoNgu808OswLwfiY+p4gHMD9kVsdX jqJFkl3Tpk0w== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575773" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:53 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:13 +0800 Message-Id: <20201208100627.9792-15-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 14/28] tests/TestSuite_multicast:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_multicast.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_multicast.py b/tests/TestSuite_multicast.py index 6fcaee6f..3ff06477 100644 --- a/tests/TestSuite_multicast.py +++ b/tests/TestSuite_multicast.py @@ -127,11 +127,10 @@ class TestMulticast(TestCase): """ IP4 Multicast Forwarding F1~F6 """ - cores = self.dut.get_core_list("1S/2C/1T") - coremask = utils.create_mask(cores) + eal_para = self.dut.create_eal_parameters(cores="1S/2C/1T") payload = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" self.dut.send_expect("%s -c %s -n 4 -- -p %s -q 2" % (self.app_ipv4_multicast_path, - coremask, '0x5'), "IPv4_MULTICAST:", 60) + eal_para, '0x5'), "IPv4_MULTICAST:", 60) for flow in list(trafficFlow.keys()): for tx_port in trafficFlow[flow][0].split(","): From patchwork Tue Dec 8 10:06:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84803 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 4D636A09E5; Tue, 8 Dec 2020 11:04:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE498C9C0; Tue, 8 Dec 2020 11:03:58 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8F12E98 for ; Tue, 8 Dec 2020 11:03:56 +0100 (CET) IronPort-SDR: q5uNilSwa9ELR6zpcPhJH/8IeN/PzuHiqx0A6DHxq0EdQ+A3eNxVWZZD6YEqiAYlJkJaEGzTCj mrHG7v3BKHqA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293410" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293410" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:56 -0800 IronPort-SDR: gGM/yZHAs0+pMX8HhOYYlgGVNMR/iAfp7LabnpVAw6YPSUQDKGcytwkXEpOqegvSR3tSi64EQK Ew0FsmKz+pWg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575793" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:54 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:14 +0800 Message-Id: <20201208100627.9792-16-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 15/28] tests/TestSuite_multiprocess:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_multiprocess.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index d38123ad..743ca1f3 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -87,6 +87,7 @@ class TestMultiprocess(TestCase): for i in self.dut_ports: self.eal_param += " -w %s" % self.dut.ports_info[i]['pci'] + self.eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') # start new session to run secondary self.session_secondary = self.dut.new_session() @@ -113,12 +114,12 @@ class TestMultiprocess(TestCase): # Send message from secondary to primary cores = self.dut.get_core_list('1S/2C/1T', socket=self.socket) coremask = utils.create_mask(cores) - self.dut.send_expect(self.app_simple_mp + " -n 1 -c %s --proc-type=primary" % (coremask), + self.dut.send_expect(self.app_simple_mp + " %s --proc-type=primary" % (self.eal_para), "Finished Process Init", 100) time.sleep(20) coremask = hex(int(coremask, 16) * 0x10).rstrip("L") self.session_secondary.send_expect( - self.app_simple_mp + " -n 1 -c %s --proc-type=secondary" % (coremask), "Finished Process Init", + self.app_simple_mp + " %s --proc-type=secondary" % (self.eal_para), "Finished Process Init", 100) self.session_secondary.send_expect("send hello_primary", ">") @@ -130,10 +131,10 @@ class TestMultiprocess(TestCase): cores = self.dut.get_core_list('1S/2C/1T', socket=self.socket) coremask = utils.create_mask(cores) self.session_secondary.send_expect( - self.app_simple_mp + " -n 1 -c %s --proc-type=primary " % (coremask), "Finished Process Init", 100) + self.app_simple_mp + " %s --proc-type=primary " % (self.eal_para), "Finished Process Init", 100) time.sleep(20) coremask = hex(int(coremask, 16) * 0x10).rstrip("L") - self.dut.send_expect(self.app_simple_mp + " -n 1 -c %s --proc-type=secondary" % (coremask), + self.dut.send_expect(self.app_simple_mp + " %s --proc-type=secondary" % (self.eal_para), "Finished Process Init", 100) self.session_secondary.send_expect("send hello_secondary", ">") out = self.dut.get_session_output() @@ -150,11 +151,11 @@ class TestMultiprocess(TestCase): cores = self.dut.get_core_list('1S/2C/1T', socket=self.socket) coremask = utils.create_mask(cores) - self.session_secondary.send_expect(self.app_simple_mp + " -n 1 -c %s --proc-type=primary" % (coremask), + self.session_secondary.send_expect(self.app_simple_mp + " %s --proc-type=primary" % (self.eal_para), "Finished Process Init", 100) time.sleep(20) coremask = hex(int(coremask, 16) * 0x10).rstrip("L") - self.dut.send_expect(self.app_simple_mp + " -n 1 -c %s --proc-type=secondary" % (coremask), + self.dut.send_expect(self.app_simple_mp + " %s --proc-type=secondary" % (self.eal_para), "Finished Process Init", 100) stringsSent = 0 for line in open('/usr/share/dict/words', 'r').readlines(): @@ -176,13 +177,13 @@ class TestMultiprocess(TestCase): # Send message from secondary to primary (auto process type) cores = self.dut.get_core_list('1S/2C/1T', socket=self.socket) coremask = utils.create_mask(cores) - out = self.dut.send_expect(self.app_simple_mp + " -n 1 -c %s --proc-type=auto " % (coremask), + out = self.dut.send_expect(self.app_simple_mp + " %s --proc-type=auto " % (self.eal_para), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly") time.sleep(20) coremask = hex(int(coremask, 16) * 0x10).rstrip("L") out = self.session_secondary.send_expect( - self.app_simple_mp + " -n 1 -c %s --proc-type=auto" % (coremask), "Finished Process Init", 100) + self.app_simple_mp + " %s --proc-type=auto" % (self.eal_para), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The type of process (SECONDARY) was not detected properly") @@ -196,11 +197,11 @@ class TestMultiprocess(TestCase): cores = self.dut.get_core_list('1S/2C/1T', socket=self.socket) coremask = utils.create_mask(cores) out = self.session_secondary.send_expect( - self.app_simple_mp + " -n 1 -c %s --proc-type=auto" % (coremask), "Finished Process Init", 100) + self.app_simple_mp + " %s --proc-type=auto" % (self.eal_para), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly") time.sleep(20) coremask = hex(int(coremask, 16) * 0x10).rstrip("L") - out = self.dut.send_expect(self.app_simple_mp + " -n 1 -c %s --proc-type=auto" % (coremask), + out = self.dut.send_expect(self.app_simple_mp + " %s --proc-type=auto" % (self.eal_para), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The type of process (SECONDARY) was not detected properly") self.session_secondary.send_expect("send hello_secondary", ">", 100) @@ -218,10 +219,10 @@ class TestMultiprocess(TestCase): cores = self.dut.get_core_list('1S/2C/1T', socket=self.socket) coremask = utils.create_mask(cores) - self.session_secondary.send_expect(self.app_simple_mp + " -n 1 -c %s -m 64" % (coremask), + self.session_secondary.send_expect(self.app_simple_mp + " %s -m 64" % (self.eal_para), "Finished Process Init", 100) coremask = hex(int(coremask, 16) * 0x10).rstrip("L") - out = self.dut.send_expect(self.app_simple_mp + " -n 1 -c %s" % (coremask), "# ", 100) + out = self.dut.send_expect(self.app_simple_mp + " %s" % (self.eal_para), "# ", 100) self.verify("Is another primary process running" in out, "No other primary process detected") From patchwork Tue Dec 8 10:06:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84804 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 82CC2A09E5; Tue, 8 Dec 2020 11:04:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1CC56C9C6; Tue, 8 Dec 2020 11:03:59 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D82A2C96E for ; Tue, 8 Dec 2020 11:03:57 +0100 (CET) IronPort-SDR: /XEoXVXx574+ScGjrPSyzLDyiLP72ovckLff4R7BTURJ/yjpHPG/J0a7+OlyKgkLbOeZGBjvKo fdXbP8phytOQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293413" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293413" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:57 -0800 IronPort-SDR: 1oab3/vLb1qpnzrrMeRgof1D/LG5y0UKEj3EY3dY+432uBjwU9Qg/89u8cJMn7BMhLpY2dlFBr giLB+ICbGjiw== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575812" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:56 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:15 +0800 Message-Id: <20201208100627.9792-17-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 16/28] tests/TestSuite_packet_ordering:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_packet_ordering.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_packet_ordering.py b/tests/TestSuite_packet_ordering.py index 067e886c..807a3c0d 100644 --- a/tests/TestSuite_packet_ordering.py +++ b/tests/TestSuite_packet_ordering.py @@ -60,6 +60,7 @@ class TestPacketOrdering(TestCase): # get socket and cores self.socket = self.dut.get_numa_id(self.dut_ports[0]) self.cores = self.dut.get_core_list("1S/4C/1T", socket=self.socket) + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.verify(self.cores is not None, "Insufficient cores for speed testing") self.core_mask = utils.create_mask(self.cores) @@ -80,8 +81,8 @@ class TestPacketOrdering(TestCase): def start_application(self): app_name = self.dut.apps_name['packet_ordering'] - cmdline = app_name + '-c {0} -n {1} -- -p {2}'.\ - format(self.core_mask, self.dut.get_memory_channels(), self.port_mask) + cmdline = app_name + '{0} -- -p {1}'.\ + format(self.eal_para, self.port_mask) # Executes the packet ordering example app. self.dut.send_expect(cmdline, 'REORDERAPP', 120) From patchwork Tue Dec 8 10:06:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84805 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 DD927A09E5; Tue, 8 Dec 2020 11:04:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44902C980; Tue, 8 Dec 2020 11:04:02 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BB7E4C970 for ; Tue, 8 Dec 2020 11:03:59 +0100 (CET) IronPort-SDR: BloGJ19mIIbn0WHqnS+fZOHavaR930zAwaWVWxnK/I+rqWvCLshAGyGX51Oyto03w/nfivKeh7 054BzOjbdsgg== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293418" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293418" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:58 -0800 IronPort-SDR: XaNsHjcPI/5AF2ZhVdYVcJT4qTMiXWap5ayIsfT9y+ZNTgBBU0uoTAaoWbQ27ygw9nOYv4uuy7 yNQOhXB4Wpqg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575828" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:57 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:16 +0800 Message-Id: <20201208100627.9792-18-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 17/28] tests/TestSuite_pmdpcap:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_pmdpcap.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py index cec987ae..ed41082e 100644 --- a/tests/TestSuite_pmdpcap.py +++ b/tests/TestSuite_pmdpcap.py @@ -126,15 +126,15 @@ class TestPmdPcap(TestCase): two_cores = self.dut.get_core_list("1S/2C/1T") core_mask = utils.create_mask(two_cores) + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') self.create_pcap_file(in_pcap, TestPmdPcap.pcap_file_sizes[0]) self.dut.session.copy_file_to(in_pcap) - command = ("{} -c {} -n {} " + + command = ("{} {} " + "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " + "-- -i --port-topology=chained --no-flush-rx") - self.dut.send_expect(command.format(self.path, core_mask, - self.memory_channel, + self.dut.send_expect(command.format(self.path, eal_para, TestPmdPcap.dut_pcap_files_path + in_pcap, out_pcap), 'testpmd> ', 15) @@ -157,18 +157,18 @@ class TestPmdPcap(TestCase): four_cores = self.dut.get_core_list("1S/4C/1T") core_mask = utils.create_mask(four_cores) + eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.create_pcap_file(in_pcap1, TestPmdPcap.pcap_file_sizes[0]) self.dut.session.copy_file_to(in_pcap1) self.create_pcap_file(in_pcap2, TestPmdPcap.pcap_file_sizes[1]) self.dut.session.copy_file_to(in_pcap2) - command = ("{} -c {} -n {} " + + command = ("{} {} " + "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " + "--vdev=eth_pcap1,rx_pcap={},tx_pcap={} " + "-- -i --no-flush-rx") - self.dut.send_expect(command.format(self.path, core_mask, - self.memory_channel, + self.dut.send_expect(command.format(self.path, eal_para, TestPmdPcap.dut_pcap_files_path + in_pcap1, out_pcap1, From patchwork Tue Dec 8 10:06:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84806 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 25C86A09E5; Tue, 8 Dec 2020 11:04:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 78D86C9AA; Tue, 8 Dec 2020 11:04:03 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 63869C930 for ; Tue, 8 Dec 2020 11:04:01 +0100 (CET) IronPort-SDR: enUXoivXGj0T6NS6FeV8pW5yns/i5B98mBmQrqviYDAxE1bSYwf/hK+KcIgL82rG5vmpBlMkid FXAnvux8QjrQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293423" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293423" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:00 -0800 IronPort-SDR: cmAqGFMlhBeUQn4soRap2CVPxjk2ol1wLeuhVDL0nSRRJpE1cuk/jeBHtiHoyeqsuugrC1FHJi it/49pNikBbQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575846" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:59 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:17 +0800 Message-Id: <20201208100627.9792-19-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 18/28] tests/TestSuite_pmdrss_hash:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_pmdrss_hash.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py index 7e6d0bf9..fb83f78d 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -449,6 +449,7 @@ class TestPmdrssHash(TestCase): Run before each test case. """ cores = self.dut.get_core_list("all") + self.eal_para = self.dut.create_eal_parameters(cores=cores) self.coremask = utils.create_mask(cores) def test_toeplitz(self): @@ -462,8 +463,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s %s -- -i --rxq=%d --txq=%d" % + (self.path, self.eal_para, queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") @@ -500,8 +501,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s %s -- -i --rxq=%d --txq=%d" % + (self.path, self.eal_para, queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") @@ -545,8 +546,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s %s -- -i --rxq=%d --txq=%d" % + (self.path, self.eal_para, queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.logger.info("***********************%s rss test********************************" % iptype) @@ -585,8 +586,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s %s -- -i --rxq=%d --txq=%d" % + (self.path, self.eal_para, queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") @@ -621,7 +622,7 @@ class TestPmdrssHash(TestCase): "fortpark_TLV","fortpark_BASE-T", "fortville_25g", "carlsville", "foxville"], "NIC Unsupported: " + str(self.nic)) - self.dut.send_expect("%s -c %s -n %d -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120) + self.dut.send_expect("%s %s -- -i" % (self.path, self.eal_para), "testpmd> ", 120) self.dut.send_expect("set promisc all off", "testpmd> ") out = self.dut.send_expect("create bonded device 3 0", "testpmd> ", 30) bond_device_id = int(re.search("port \d+", out).group().split(" ")[-1].strip()) From patchwork Tue Dec 8 10:06:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84807 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 849E0A09E5; Tue, 8 Dec 2020 11:04:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD4F2C9D2; Tue, 8 Dec 2020 11:04:03 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 2B118C970 for ; Tue, 8 Dec 2020 11:04:02 +0100 (CET) IronPort-SDR: To/uzm5Ad43v+MSSvI+COodGU0KIB0J9UZlGbgpt9rFB9sDBLr2mbGqe7XGlOnursda7uuIPaZ zs8J/Tk77+yQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293425" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293425" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:01 -0800 IronPort-SDR: ckogK0kdm96leSweiUFoa2NeeTAHoYHIyhAubH6zgZiqBmVMKIfSW8Wl1V6Fq9yNBLbKkexOpz 0j94GXo+IbIg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575865" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:00 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:18 +0800 Message-Id: <20201208100627.9792-20-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 19/28] tests/TestSuite_pmdrssreta:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_pmdrssreta.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py index 4f7c7915..25c8074f 100644 --- a/tests/TestSuite_pmdrssreta.py +++ b/tests/TestSuite_pmdrssreta.py @@ -269,8 +269,7 @@ class TestPmdrssreta(TestCase): localPort = self.tester.get_local_port(dutPorts[0]) itf = self.tester.get_interface(localPort) self.dut.kill_all() - cmd = self.dut.apps_name['test-pmd'] + "-c %s -n %d -- -i --rxq=2 --txq=2" % (self.coremask, self.dut.get_memory_channels()) - self.dut.send_expect(cmd, "testpmd> ", 120) + self.pmdout.start_testpmd("all", "--rxq=2 --txq=2") self.dut.send_expect("start", "testpmd> ", 120) out = self.dut.send_expect("show port info all", "testpmd> ", 120) From patchwork Tue Dec 8 10:06:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84808 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 C8140A09E5; Tue, 8 Dec 2020 11:04:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D003CC9C4; Tue, 8 Dec 2020 11:04:05 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 90E80C9CC for ; Tue, 8 Dec 2020 11:04:03 +0100 (CET) IronPort-SDR: cHX8OqCpWkWRWZH5eizSbV544oOw0jargQuXniKplIs5huWGeZGLi3YY8Olc7T5qvVAXhgoDIn YWwx3E0A8WgA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293427" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293427" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:03 -0800 IronPort-SDR: PUNRlVxkON/rMCVmDwi2eMvoXkM0Tyv0RpBtOAzgN2uDfRw0TxUYp6TUmC0EEEBb3YDLdW8VkS gHJhj4rEPEHQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575886" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:01 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:19 +0800 Message-Id: <20201208100627.9792-21-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 20/28] tests/TestSuite_ptpclient:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_ptpclient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py index 07bfde68..858d5f46 100644 --- a/tests/TestSuite_ptpclient.py +++ b/tests/TestSuite_ptpclient.py @@ -64,6 +64,7 @@ class TestPtpClient(TestCase): self.app_name = self.app_ptpclient_path[self.app_ptpclient_path.rfind('/')+1:] port = self.tester.get_local_port(dutPorts[0]) self.itf0 = self.tester.get_interface(port) + self.eal_para = self.dut.create_eal_parameters() def set_up(self): """ @@ -99,7 +100,7 @@ class TestPtpClient(TestCase): self.tester.send_expect("ptp4l -i %s -2 -m -S &" % self.itf0, "ptp4l") # run ptpclient on the background - self.dut.send_expect("./%s -c f -n 3 -- -T 0 -p 0x1 " % self.app_ptpclient_path + "&", + self.dut.send_expect("./%s %s -- -T 0 -p 0x1 " % (self.app_ptpclient_path, self.eal_para) + "&", "Delta between master and slave", 60) time.sleep(3) out = self.dut.get_session_output() @@ -130,7 +131,7 @@ class TestPtpClient(TestCase): self.tester.send_expect("ptp4l -i %s -2 -m -S &" % self.itf0, "ptp4l") # run ptpclient on the background - self.dut.send_expect("./%s -c f -n 3 -- -T 1 -p 0x1" % self.app_ptpclient_path + "&", + self.dut.send_expect("./%s %s -- -T 1 -p 0x1" % (self.app_ptpclient_path, self.eal_para) + "&", "Delta between master and slave", 60) time.sleep(3) out = self.dut.get_session_output() From patchwork Tue Dec 8 10:06:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84809 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 0BD5AA09E5; Tue, 8 Dec 2020 11:04:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 11050C9DA; Tue, 8 Dec 2020 11:04:06 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id EFB1DC98C for ; Tue, 8 Dec 2020 11:04:04 +0100 (CET) IronPort-SDR: Ur51gwOm99Zeq5oLoKUTV2waeYYajoBh56jdCvkS918495k7rZb/lPndD2MlfZPkMb2D888DCc d/2ExQwwfPTA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293433" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293433" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:04 -0800 IronPort-SDR: N6JNsqh9cfIk1AgBkAM4AflnTaOYo3rpHb2ipw93yP+hX+r0+V9X0KEqepAMFS+ppHFN/ehcGm VrDqxv1btugg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575908" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:03 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:20 +0800 Message-Id: <20201208100627.9792-22-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 21/28] tests/TestSuite_queue_start_stop:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_queue_start_stop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index 77b25607..75718c8c 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -130,8 +130,9 @@ class TestQueueStartStop(TestCase): queue start/stop test """ #dpdk start + eal_para = self.dut.create_eal_parameters() try: - self.dut.send_expect("%s -c 0xf -n 4 -- -i --portmask=0x1 --port-topology=loop" % self.app_testpmd_path, "testpmd>", 120) + self.dut.send_expect("%s %s -- -i --portmask=0x1 --port-topology=loop" % (self.app_testpmd_path, eal_para), "testpmd>", 120) time.sleep(5) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("start", "testpmd>") From patchwork Tue Dec 8 10:06:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84810 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 6C7D2A09E5; Tue, 8 Dec 2020 11:04:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 38EC1C97C; Tue, 8 Dec 2020 11:04:09 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D391AC97C for ; Tue, 8 Dec 2020 11:04:07 +0100 (CET) IronPort-SDR: 431WE4XOe6jYyaTpt94yI2WhpkxecWxxM5jrk9J1MZEq1Y3Nvox5oRLtEUhF4nWJ6zo4PLOj5L Tomx2t7jaycQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293437" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293437" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:06 -0800 IronPort-SDR: VG0ybO92VhA+0JdcGRYQY5RvGYpzw3dx8Nv7OnKmdNaXlRJLXJraLHCFA8cXJzh34MU5oUMUkw /HoulB0wUGbg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575928" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:04 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:21 +0800 Message-Id: <20201208100627.9792-23-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 22/28] tests/TestSuite_rxtx_callbacks:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_rxtx_callbacks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_rxtx_callbacks.py b/tests/TestSuite_rxtx_callbacks.py index 33a1bb00..f7d343eb 100644 --- a/tests/TestSuite_rxtx_callbacks.py +++ b/tests/TestSuite_rxtx_callbacks.py @@ -67,7 +67,8 @@ class TestRxtxCallbacks(TestCase): pass def test_rxtx_callbacks(self): - cmd = self.app_rxtx_callbacks_path + " -c %s -n %d " % (self.coremask,self.dut.get_memory_channels()) + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') + cmd = self.app_rxtx_callbacks_path + " %s" % eal_para self.dut.send_expect(cmd,"forwarding packets",60) self.iface_port0 = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0])) From patchwork Tue Dec 8 10:06:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84812 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 A6068A09E5; Tue, 8 Dec 2020 11:04:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97D96C98C; Tue, 8 Dec 2020 11:04:11 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 7986AC9E2 for ; Tue, 8 Dec 2020 11:04:08 +0100 (CET) IronPort-SDR: EVqWbEP+N1GRLRl3zrOPppO8Kid3ZhV1FkfExFobHug4cIFWkrnU7B33NhzvaEopPUS01ibs0+ wZjuzsV4cSaA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293439" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293439" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:07 -0800 IronPort-SDR: ifg2AjpPCMhzOmCybP7euW5a/oM37QMrLYPdvzKzxVJ/xuNg0yGq43IbMT9Kc1LzwWK++oU1fs taJ2MsqYTNdQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575946" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:06 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:22 +0800 Message-Id: <20201208100627.9792-24-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 23/28] tests/TestSuite_short_live:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_short_live.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 88fc3bf2..525be9d3 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -67,6 +67,7 @@ class TestShortLiveApp(TestCase): self.app_l2fwd_path = self.dut.apps_name['l2fwd'] self.app_l3fwd_path = self.dut.apps_name['l3fwd'] self.app_testpmd = self.dut.apps_name['test-pmd'] + self.eal_para = self.dut.create_eal_parameters() def set_up(self): """ @@ -141,7 +142,7 @@ class TestShortLiveApp(TestCase): Basic rx/tx forwarding test """ #dpdk start - self.dut.send_expect("./%s -c 0xf -n 4 -- -i --portmask=0x3" % self.app_testpmd, "testpmd>", 120) + self.dut.send_expect("./%s %s -- -i --portmask=0x3" % (self.app_testpmd, self.eal_para), "testpmd>", 120) time.sleep(5) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") @@ -160,7 +161,8 @@ class TestShortLiveApp(TestCase): """ time = [] regex = re.compile(".* (\d+:\d{2}\.\d{2}).*") - out = self.dut.send_expect("echo quit | time ./%s -c 0x3 -n 4 --no-pci -- -i" % self.app_testpmd, "#", 120) + eal_para = self.dut.create_eal_parameters(no_pci=True) + out = self.dut.send_expect("echo quit | time ./%s %s -- -i" % (self.app_testpmd, eal_para), "#", 120) time = regex.findall(out) if time != []: @@ -173,7 +175,7 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print("clean_up_with_signal_testpmd round %d" % (i + 1)) - self.dut.send_expect("./%s -c 0xf -n 4 -- -i --portmask=0x3" % self.app_testpmd, "testpmd>", 120) + self.dut.send_expect("./%s %s -- -i --portmask=0x3" % (self.app_testpmd, self.eal_para), "testpmd>", 120) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") self.dut.send_expect("start", "testpmd>") @@ -198,7 +200,7 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print("clean_up_with_signal_l2fwd round %d" % (i + 1)) - self.dut.send_expect("%s -n 4 -c 0xf -- -p 0x3 &" % self.app_l2fwd_path, "L2FWD: entering main loop", 60) + self.dut.send_expect("%s %s -- -p 0x3 &" % (self.app_l2fwd_path, self.eal_para), "L2FWD: entering main loop", 60) self.check_forwarding([0, 1], self.nic) # kill with different Signal @@ -214,7 +216,7 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print("clean_up_with_signal_l3fwd round %d" % (i + 1)) - self.dut.send_expect("%s -n 4 -c 0xf -- -p 0x3 --config='(0,0,1),(1,0,2)' &" % self.app_l3fwd_path, "L3FWD: entering main loop", 120) + self.dut.send_expect("%s %s -- -p 0x3 --config='(0,0,1),(1,0,2)' &" % (self.app_l3fwd_path, self.eal_para), "L3FWD: entering main loop", 120) self.check_forwarding([0, 0], self.nic) # kill with different Signal From patchwork Tue Dec 8 10:06:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84811 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 7CF57A09E6; Tue, 8 Dec 2020 11:04:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 654F3C9B8; Tue, 8 Dec 2020 11:04:10 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 48617C96E for ; Tue, 8 Dec 2020 11:04:09 +0100 (CET) IronPort-SDR: MX0aJa4JzWTSzjJ6Jg1XW5UXp6j6n5+X1NLumYvywl52N+EMoNjenpsj84+604tHjrbj9sBIQl CrouhGbrgh+A== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293445" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293445" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:08 -0800 IronPort-SDR: SCCF9zsP2hKtdJN14w7gtBhl4t3Ngmpc4g/f2eQZtJKBc3wQZUvMUAMtzEEWCEYICMzKmVG1sq VxqVETafCP1A== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575964" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:07 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:23 +0800 Message-Id: <20201208100627.9792-25-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 24/28] tests/TestSuite_skeleton:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_skeleton.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_skeleton.py b/tests/TestSuite_skeleton.py index 7ae19f68..7ddc90a0 100644 --- a/tests/TestSuite_skeleton.py +++ b/tests/TestSuite_skeleton.py @@ -68,7 +68,8 @@ class TestSkeleton(TestCase): pass def test_skeleton(self): - cmd = self.path + " -c %s -n %d " % (self.coremask,self.dut.get_memory_channels()) + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') + cmd = self.path + " -c %s -n %d " % eal_para self.dut.send_expect(cmd,"forwarding packets",60) time.sleep(5) From patchwork Tue Dec 8 10:06:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84813 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 C93A8A09E5; Tue, 8 Dec 2020 11:04:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CBC6DC9E7; Tue, 8 Dec 2020 11:04:12 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B6532C9E6 for ; Tue, 8 Dec 2020 11:04:10 +0100 (CET) IronPort-SDR: VdvQrqhcCsx62ioSjB3vnZv6IZWN55C3r6fG/fcx6mYMlal3WrSkriDNjQvmS9n8w/sJ+0LwOM SIC2/Nu7DZ0w== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293448" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293448" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:10 -0800 IronPort-SDR: KDWLSe7Oj2u273Czo0pB/ZCWb8jGlHOnWPt0Un4vhxM1pxMc4tofPSdyXSGopnFbypy1dM7BUs H3zMLNcXGYzQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575980" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:09 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:24 +0800 Message-Id: <20201208100627.9792-26-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 25/28] tests/TestSuite_softnic:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_softnic.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py index d0fb419c..0795b45c 100644 --- a/tests/TestSuite_softnic.py +++ b/tests/TestSuite_softnic.py @@ -77,7 +77,7 @@ class TestSoftnic(TestCase): self.dut.session.copy_file_to(self.nat_firmware, self.root_path) self.eal_param = " -w %s" % self.dut.ports_info[0]['pci'] self.path = self.dut.apps_name['test-pmd'] - self.cmd = "./%s -c 0x7 -s 0x4 -n 4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086' -- -i --forward-mode=softnic --portmask=0x2" + self.pmdout = PmdOutput(self.dut) # get dts output path if self.logger.log_path.startswith(os.sep): self.output_path = self.logger.log_path @@ -103,7 +103,9 @@ class TestSoftnic(TestCase): # 10G nic pps(M) expect_pps = [14, 8, 4, 2, 1, 0.9, 0.8] - self.dut.send_expect(self.cmd % (self.path, self.eal_param, 'firmware.cli'), "testpmd>", timeout=800) + self.pmdout.start_testpmd(list(range(3)), "--forward-mode=softnic --portmask=0x2", + eal_param="-s 0x4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086'" + % (self.eal_param, 'firmware.cli')) self.dut.send_expect("start", "testpmd>") rx_port = self.tester.get_local_port(0) tx_port = self.tester.get_local_port(0) @@ -128,7 +130,9 @@ class TestSoftnic(TestCase): def test_perf_shaping_for_pipe(self): self.change_config_file('tm_firmware.cli') - self.dut.send_expect(self.cmd % (self.path, self.eal_param, 'tm_firmware.cli'), "testpmd> ", timeout=800) + self.pmdout.start_testpmd(list(range(3)), "--forward-mode=softnic --portmask=0x2", + eal_param="-s 0x4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086'" + % (self.eal_param, 'tm_firmware.cli')) self.dut.send_expect("start", "testpmd>") rx_port = self.tester.get_local_port(0) pkts = ["Ether(dst='%s')/IP(dst='100.0.0.0')/UDP()/Raw(load='x'*(64 - %s))", "Ether(dst='%s')/IP(dst='100.0.15.255')/UDP()/Raw(load='x'*(64 - %s))", "Ether(dst='%s')/IP(dst='100.0.4.0')/UDP()/Raw(load='x'*(64 - %s))"] @@ -167,7 +171,9 @@ class TestSoftnic(TestCase): for t in pkt_type: for i in range(2): self.dut.send_expect("sed -i -e '12c table action profile AP0 ipv4 offset 270 fwd nat %s proto %s' %s" % (pkt_location[i], t, self.root_path + 'nat_firmware.cli'), "#") - self.dut.send_expect(self.cmd % (self.path, self.eal_param, 'nat_firmware.cli'), "testpmd>", timeout=60) + self.pmdout.start_testpmd(list(range(3)), "--forward-mode=softnic --portmask=0x2", + eal_param="-s 0x4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086'" % ( + self.eal_param, 'nat_firmware.cli')) self.dut.send_expect("start", "testpmd>") # src ip tcp for j in range(2): From patchwork Tue Dec 8 10:06:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84814 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 EEAC9A09E5; Tue, 8 Dec 2020 11:04:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 00761C9A6; Tue, 8 Dec 2020 11:04:14 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1B781C9E7 for ; Tue, 8 Dec 2020 11:04:11 +0100 (CET) IronPort-SDR: 48wgJP8cYBZ6dhDXl7m9ef67gnD0hdDYgcreLpPmWkcUCj/RQ4Y9l2RLj5GCVQWj9ToOtUG6iV v5AZUs7U+22g== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293455" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293455" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:11 -0800 IronPort-SDR: wVJIW11z/tPZQ90gvlmLhHUT5lqXUFOupa803P1wNj81qkr0ZZlRU7jbM90VbZeqh1R9NLQBn7 WEwiR/1y90Og== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575996" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:10 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:25 +0800 Message-Id: <20201208100627.9792-27-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 26/28] tests/TestSuite_timer:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_timer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_timer.py b/tests/TestSuite_timer.py index 0be80293..77758823 100644 --- a/tests/TestSuite_timer.py +++ b/tests/TestSuite_timer.py @@ -69,10 +69,10 @@ class TestTimer(TestCase): # get the mask for the first core cores = self.dut.get_core_list('1S/1C/1T') - coreMask = utils.create_mask(cores) + eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T') # run timer on the background - cmdline = "./%s -n 1 -c " % self.app_timer_path + coreMask + " &" + cmdline = "./%s %s " % (self.app_timer_path, eal_para) + " &" self.dut.send_expect(cmdline, "# ", 1) time.sleep(15) From patchwork Tue Dec 8 10:06:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84815 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 4D911A09E5; Tue, 8 Dec 2020 11:04:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F404C9E0; Tue, 8 Dec 2020 11:04:16 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 02D58C96E for ; Tue, 8 Dec 2020 11:04:13 +0100 (CET) IronPort-SDR: 54O6c27YZLm1HIxNgR1ge/C58i9cMQywYEXPpi4uzQ+KhwTHepWTYRMTi98Cmdek0pqMwMHuCr RZP5om5eND2g== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293463" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293463" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:13 -0800 IronPort-SDR: WRKlaTQvCSl/Zx7OFM8ErKusLSuGAdFzjmRRaFUO0Hf+2fUprRcDLZa3e5nfnhps9Hn1E1FkzD yQHkJKEVvfog== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363576014" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:11 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:26 +0800 Message-Id: <20201208100627.9792-28-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 27/28] tests/TestSuite_tso:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_tso.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index d0c67d47..e119b3fd 100644 --- a/tests/TestSuite_tso.py +++ b/tests/TestSuite_tso.py @@ -77,9 +77,7 @@ class TestTSO(TestCase): self.table_header.append("%s Mpps" % test_cycle['cores']) self.table_header.append("% linerate") - self.eal_param = "" - for i in self.dut_ports: - self.eal_param += " -w %s" % self.dut.ports_info[i]['pci'] + self.eal_param = self.dut.create_eal_parameters(cores='1S/1C/2T') self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE[ 'ip'] + HEADER_SIZE['tcp'] @@ -201,9 +199,9 @@ class TestTSO(TestCase): self.tester.send_expect("ip l set %s up" % tx_interface, "# ") if (self.nic in ["cavium_a063","cavium_a064"]): - cmd = "%s -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8000" % (self.path, self.coreMask, self.dut.get_memory_channels(), self.eal_param, self.portMask, TSO_MTU) + cmd = "%s %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8000" % (self.path, self.eal_param, self.portMask, TSO_MTU) else: - cmd = "%s -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.path, self.coreMask, self.dut.get_memory_channels(), self.eal_param, self.portMask, TSO_MTU) + cmd = "%s %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.path, self.eal_param, self.portMask, TSO_MTU) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -298,7 +296,7 @@ class TestTSO(TestCase): self.tester.send_expect("ethtool -K %s rx off tx off tso off gso off gro off lro off" % tx_interface, "# ") self.tester.send_expect("ip l set %s up" % tx_interface, "# ") - cmd = "%s -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.path, self.coreMask, self.dut.get_memory_channels(), self.eal_param, self.portMask, TSO_MTU) + cmd = "%s %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.path, self.eal_param, self.portMask, TSO_MTU) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("port stop all", "testpmd> ", 120) @@ -398,7 +396,7 @@ class TestTSO(TestCase): else: queues = 1 - command_line = "%s -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.path, self.coreMask, self.dut.get_memory_channels(), self.eal_param, self.portMask, TSO_MTU) + command_line = "%s %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.path, self.eal_param, self.portMask, TSO_MTU) info = "Executing PMD using %s\n" % test_cycle['cores'] self.logger.info(info) self.rst_report(info, annex=True) From patchwork Tue Dec 8 10:06:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84816 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 53542A09E5; Tue, 8 Dec 2020 11:04:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 604A6C9B0; Tue, 8 Dec 2020 11:04:17 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 99589C96E for ; Tue, 8 Dec 2020 11:04:15 +0100 (CET) IronPort-SDR: KCIwwryz2WHPCwR6FuTBR2HK89nzSQGOA428KtOawo4ZqVLSlLB3neeNwUUuqpopDtXM3z5AC4 AdBrZ5k4ZUyw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293466" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293466" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:14 -0800 IronPort-SDR: T9oLfkncaGQihAgNcKU76DdmVPtFpkz+zcdsAAj05psikQ/mFIs01LzzsCyPeBXV6UGUcqMk+X MpymW+BNWrow== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363576030" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:13 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:27 +0800 Message-Id: <20201208100627.9792-29-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 28/28] tests/TestSuite_userspace_ethtool:Modify the hard coded app parameter to call the platform interface 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" Signed-off-by: Zhou Jun --- tests/TestSuite_userspace_ethtool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 68dace33..d73a7e16 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -68,8 +68,9 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): cpu_cores = self.dut.send_expect('lscpu |grep "NUMA node%s CPU(s):"' % out, "# ") core = re.findall(r"\d+-(\d+)", cpu_cores)[0] core = int(core) - cores = "%d,%d,%d,%d" % (core - 1, core - 2, core - 3, core - 4) - self.cmd = "%s -l %s -n %d" % (self.app_ethtool_path, cores, self.dut.get_memory_channels()) + cores = [core - 1, core - 2, core - 3, core - 4] + eal_para = self.dut.create_eal_parameters(cores=cores) + self.cmd = "%s %s" % (self.app_ethtool_path, eal_para) # pause frame basic configuration self.pause_time = 65535