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 15216A068F for ; Mon, 1 Apr 2019 05:16:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B237311A4; Mon, 1 Apr 2019 05:16:55 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A7D8011A4 for ; Mon, 1 Apr 2019 05:16:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Mar 2019 20:16:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,295,1549958400"; d="scan'208";a="333786936" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 31 Mar 2019 20:16:52 -0700 Received: from fmsmsx161.amr.corp.intel.com (10.18.125.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 31 Mar 2019 20:16:52 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX161.amr.corp.intel.com (10.18.125.9) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 31 Mar 2019 20:16:51 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.93]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.147]) with mapi id 14.03.0415.000; Mon, 1 Apr 2019 11:16:49 +0800 From: "Li, WenjieX A" To: "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts][PATCH V1] tests/ip_pipeline: change the config file Thread-Index: AQHU451koLsbRPxp1EezwA7uUMSdY6Ymq0cA Date: Mon, 1 Apr 2019 03:16:49 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B5369E53D@SHSMSX103.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: 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: Li, WenjieX A > -----Original Message----- > From: Li, WenjieX A > 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