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())