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 3557BA05D3 for ; Tue, 26 Mar 2019 08:55:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EAC7F2BF4; Tue, 26 Mar 2019 08:55:08 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id EFF535A for ; Tue, 26 Mar 2019 08:55:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2019 00:55:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,271,1549958400"; d="scan'208";a="143861444" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 26 Mar 2019 00:55:07 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 26 Mar 2019 00:55:06 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 26 Mar 2019 00:55:06 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.158]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.74]) with mapi id 14.03.0415.000; Tue, 26 Mar 2019 15:55:04 +0800 From: "Zhu, ShuaiX" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/ip_pipeline: change the config file Thread-Index: AQHU451xuln2nWhSS0qiOZ9gr1Hha6YdiwRw Date: Tue, 26 Mar 2019 07:55:03 +0000 Message-ID: <4DC48DF9BDA3E54A836D2D3C057DEC6F0B157117@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: 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-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" Tested-by: Zhu, ShuaiX > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li > Sent: Tuesday, March 26, 2019 2: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