From patchwork Thu Nov 12 07:25:28 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: 84044 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 AA74FA09D3; Thu, 12 Nov 2020 08:22:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B2EC592C; Thu, 12 Nov 2020 08:22:38 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id ACC91569B for ; Thu, 12 Nov 2020 08:22:36 +0100 (CET) IronPort-SDR: a5P3ysaKve7RTu/out1JShUII7JLQ7+VSZnE6yVMCeB/6EEaYXL5cPHfrWLyKs38sCfNBzmjb9 YR3StGJ2q2Rw== X-IronPort-AV: E=McAfee;i="6000,8403,9802"; a="167687294" X-IronPort-AV: E=Sophos;i="5.77,471,1596524400"; d="scan'208";a="167687294" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 23:22:34 -0800 IronPort-SDR: BoglTvZvd9NbSGwPJr+SzD+lVurMAr7i1uLFjwER6Nn6RWZuftPiW34YB2wsLHsrf+VT924xPU Aqi4cAOJFcew== X-IronPort-AV: E=Sophos;i="5.77,471,1596524400"; d="scan'208";a="474173402" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 23:22:32 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Thu, 12 Nov 2020 15:25:28 +0800 Message-Id: <20201112072528.22910-1-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector 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" adapt start testpmd with novector Signed-off-by: Zhou Jun Tested-by: Zhou, Jun --- tests/TestSuite_qinq_filter.py | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py index 91a2d7a5..2d4defde 100644 --- a/tests/TestSuite_qinq_filter.py +++ b/tests/TestSuite_qinq_filter.py @@ -72,8 +72,6 @@ class TestQinqFilter(TestCase): cores = self.dut.get_core_list('1S/2C/1T') self.coreMask = utils.create_mask(cores) - self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'n'}) - self.dut.build_install_dpdk(self.target) self.path=self.dut.apps_name['test-pmd'] def vlan_send_packet(self, vlans): @@ -143,9 +141,10 @@ class TestQinqFilter(TestCase): Enable receipt of dual VLAN packets """ - self.dut.send_expect(r'%s -c %s -n 4 -- -i \ + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') + self.dut.send_expect(r'%s %s -- -i \ --portmask=%s --port-topology=loop \ - --rxq=4 --txq=4 --disable-rss' % (self.path, self.coreMask, self.portMask), + --rxq=4 --txq=4 --disable-rss' % (self.path, eal_para, self.portMask), "testpmd> ", 30) self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("vlan set strip on %s" % dutRxPortId, "testpmd> ") @@ -165,9 +164,10 @@ class TestQinqFilter(TestCase): """ qinq filter packet received by assign PF queues """ - self.dut.send_expect(r'%s -c %s -n 4 -- -i \ + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') + self.dut.send_expect(r'%s %s -- -i \ --portmask=%s --port-topology=loop \ - --rxq=4 --txq=4 --disable-rss' % (self.path, self.coreMask, self.portMask), + --rxq=4 --txq=4 --disable-rss' % (self.path, eal_para, self.portMask), "testpmd> ", 30) self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -201,10 +201,10 @@ class TestQinqFilter(TestCase): vf0_session = self.dut.new_session('qinq_filter') vf1_session = self.dut.new_session('qinq_filter') - self.dut.send_expect(r'%s -c %s -n 4 \ - --socket-mem=1024,1024 --file-prefix=pf -w %s -- -i --port-topology=loop \ + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T', prefix='pf', ports=[self.dut.ports_info[dutRxPortId]['pci']]) + self.dut.send_expect(r'%s %s -- -i --port-topology=loop \ --rxq=4 --txq=4 --disable-rss' - % (self.path, self.coreMask, self.dut.ports_info[dutRxPortId]['pci']), + % (self.path, eal_para), "testpmd> ", 30) self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -270,10 +270,10 @@ class TestQinqFilter(TestCase): vf0_session = self.dut.new_session('qinq_filter') vf1_session = self.dut.new_session('qinq_filter') - self.dut.send_expect(r'%s -c %s -n 4 \ - --socket-mem=1024,1024 --file-prefix=pf -w %s -- -i --port-topology=loop \ + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T', prefix='pf', ports=[self.dut.ports_info[dutRxPortId]['pci']]) + self.dut.send_expect(r'%s %s -- -i --port-topology=loop \ --rxq=4 --txq=4 --disable-rss' - % (self.path, self.coreMask, self.dut.ports_info[dutRxPortId]['pci']), + % (self.path, eal_para), "testpmd> ", 30) self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -348,5 +348,4 @@ class TestQinqFilter(TestCase): """ Run after each test suite. """ - self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'y'}) - self.dut.build_install_dpdk(self.target) + pass