From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7630AA0679 for ; Wed, 3 Apr 2019 18:52:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 347831B4F5; Wed, 3 Apr 2019 18:52:29 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E67431B4F2 for ; Wed, 3 Apr 2019 18:52:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2019 09:52:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,305,1549958400"; d="scan'208";a="158433960" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 03 Apr 2019 09:52:25 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 3 Apr 2019 09:52:25 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 3 Apr 2019 09:52:24 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.39]) with mapi id 14.03.0415.000; Thu, 4 Apr 2019 00:52:23 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/ip_pipeline: change the config file Thread-Index: AQHU451xBUBYc2M//U2MfYOOyMeoJqYqs/Mw Date: Wed, 3 Apr 2019 16:52:22 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA5B582@SHSMSX101.ccr.corp.intel.com> References: <1553582040-86433-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1553582040-86433-1-git-send-email-wenjiex.a.li@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODljYTA0ZjctZjViZS00MWEyLWIwMjgtOGUyNWE0YjJjZjhiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidEVcL0I5RVE0MU1hank0RE1kSDhocUtUT0p3R1JJTW85T1dqcEhLSVBrY1h4S3J3QzFIKzhhWjRNQnFMQzIreDMifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/ip_pipeline: change the config file 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li > Sent: Monday, March 25, 2019 11:34 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] tests/ip_pipeline: change the config file >=20 > 1. install vfio-pci driver to VF before test 2. change the config file l2= fwd.cli >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_ip_pipeline.py | 19 +++++++++++-------- > 1 file changed, 11 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline= .py > index 37f5e3f..390c69d 100644 > --- a/tests/TestSuite_ip_pipeline.py > +++ b/tests/TestSuite_ip_pipeline.py > @@ -127,6 +127,7 @@ class TestIPPipeline(TestCase): > This is to set up vf environment. > The pf is bound to dpdk driver. > """ > + self.dut.send_expect("modprobe vfio-pci","# ") > if driver =3D=3D 'default': > for port_id in self.dut_ports: > port =3D self.dut.ports_info[port_id]['port'] > @@ -488,13 +489,14 @@ class TestIPPipeline(TestCase): > VF l2fwd pipeline, PF bound to DPDK driver > """ > self.setup_env(self.port_nums, driver=3Dself.drivername) > - cmd =3D "sed -i -e > 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[0][0].pci > + self.dut.send_expect("sed -i '/^link > LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20) > + cmd =3D "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128 > + MEMPOOL0 txq 1 512 promiscuous on' > + ./examples/ip_pipeline/examples/l2fwd.cli" % > + self.sriov_vfs_port[3][0].pci > self.dut.send_expect(cmd, "# ", 20) > - cmd =3D "sed -i -e > 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[1][0].pci > + cmd =3D "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128 > + MEMPOOL0 txq 1 512 promiscuous on' > + ./examples/ip_pipeline/examples/l2fwd.cli" % > + self.sriov_vfs_port[2][0].pci > self.dut.send_expect(cmd, "# ", 20) > - cmd =3D "sed -i -e > 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[2][0].pci > + cmd =3D "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128 > + MEMPOOL0 txq 1 512 promiscuous on' > + ./examples/ip_pipeline/examples/l2fwd.cli" % > + self.sriov_vfs_port[1][0].pci > self.dut.send_expect(cmd, "# ", 20) > - cmd =3D "sed -i -e > 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[3][0].pci > + cmd =3D "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) >=20 > TESTPMD =3D "./%s/app/testpmd" % self.target @@ -569,13 +571,14 = @@ > class TestIPPipeline(TestCase): > VF l2fwd pipeline, PF bound to kernel driver > """ > self.setup_env(self.port_nums, driver=3D'default') > - cmd =3D "sed -i -e > 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[0][0].pci > + self.dut.send_expect("sed -i '/^link > LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20) > + cmd =3D "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128 > + MEMPOOL0 txq 1 512 promiscuous on' > + ./examples/ip_pipeline/examples/l2fwd.cli" % > + self.sriov_vfs_port[3][0].pci > self.dut.send_expect(cmd, "# ", 20) > - cmd =3D "sed -i -e > 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[1][0].pci > + cmd =3D "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128 > + MEMPOOL0 txq 1 512 promiscuous on' > + ./examples/ip_pipeline/examples/l2fwd.cli" % > + self.sriov_vfs_port[2][0].pci > self.dut.send_expect(cmd, "# ", 20) > - cmd =3D "sed -i -e > 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[2][0].pci > + cmd =3D "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128 > + MEMPOOL0 txq 1 512 promiscuous on' > + ./examples/ip_pipeline/examples/l2fwd.cli" % > + self.sriov_vfs_port[1][0].pci > self.dut.send_expect(cmd, "# ", 20) > - cmd =3D "sed -i -e > 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % > self.sriov_vfs_port[3][0].pci > + cmd =3D "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) >=20 > IP_PIPELINE =3D "./examples/ip_pipeline/build/ip_pipeline" > -- > 2.17.2