From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E2EBA0524; Tue, 25 Feb 2020 04:01:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7868C1BFAC; Tue, 25 Feb 2020 04:01:23 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 568021BFAB for ; Tue, 25 Feb 2020 04:01:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 19:01:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,482,1574150400"; d="scan'208";a="226202359" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga007.jf.intel.com with ESMTP; 24 Feb 2020 19:01:21 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 24 Feb 2020 19:01:21 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 24 Feb 2020 19:01:20 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.158]) with mapi id 14.03.0439.000; Tue, 25 Feb 2020 11:01:17 +0800 From: "Tu, Lijuan" To: "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests: adjust defination related l3fwd app Thread-Index: AQHV64F0EhjlpmVxh0S5pduK63Q2GqgrOKxQ Date: Tue, 25 Feb 2020 03:01:17 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCDCED@SHSMSX101.ccr.corp.intel.com> References: <1582626247-127409-1-git-send-email-lijuan.tu@intel.com> In-Reply-To: <1582626247-127409-1-git-send-email-lijuan.tu@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.2.0.6 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] tests: adjust defination related l3fwd app 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: Tu, Lijuan > Sent: Tuesday, February 25, 2020 6:24 PM > To: dts@dpdk.org > Cc: Tu, Lijuan > Subject: [dts] [PATCH] tests: adjust defination related l3fwd app >=20 > According to DPDK(a65bf3d724), the defination of > RTE_TEST_RX_DESC_DEFAULT and RTE_TEST_TX_DESC_DEFAULT are moved > to examples/l3fwd/l3fwd.h >=20 > Signed-off-by: Lijuan Tu > --- > tests/TestSuite_vf_l3fwd.py | 4 ++-- > tests/l3fwd_base.py | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_l3fwd.py b/tests/TestSuite_vf_l3fwd.py in= dex > 1c3c001..2416a40 100644 > --- a/tests/TestSuite_vf_l3fwd.py > +++ b/tests/TestSuite_vf_l3fwd.py > @@ -71,9 +71,9 @@ class TestVfL3fwd(TestCase): > self.l3fwd_test_results =3D {'header': [], 'data': []} > self.logger.info("Configure RX/TX descriptor to 2048, and re- > build ./examples/l3fwd") > self.dut.send_expect("sed -i -e 's/define > RTE_TEST_RX_DESC_DEFAULT.*$/" > - + "define RTE_TEST_RX_DESC_DEFAULT > 2048/' ./examples/l3fwd/main.c", "#", 20) > + + "define RTE_TEST_RX_DESC_DEFAULT 2048/' > + ./examples/l3fwd/l3fwd.h", "#", 20) > self.dut.send_expect("sed -i -e 's/define > RTE_TEST_TX_DESC_DEFAULT.*$/" > - + "define RTE_TEST_TX_DESC_DEFAULT > 2048/' ./examples/l3fwd/main.c", "#", 20) > + + "define RTE_TEST_TX_DESC_DEFAULT 2048/' > + ./examples/l3fwd/l3fwd.h", "#", 20) > out =3D self.dut.build_dpdk_apps("./examples/l3fwd") > self.verify("Error" not in out, "compilation error 1") > self.verify("No such file" not in out, "compilation error 2") di= ff --git > a/tests/l3fwd_base.py b/tests/l3fwd_base.py index 5d11ac7..4eb823c > 100644 > --- a/tests/l3fwd_base.py > +++ b/tests/l3fwd_base.py > @@ -350,12 +350,12 @@ class L3fwdBase(object): > "sed -i -e 's/" > "define RTE_TEST_RX_DESC_DEFAULT.*$/" > "define RTE_TEST_RX_DESC_DEFAULT 2048/' " > - "./examples/l3fwd/main.c")) > + "./examples/l3fwd/l3fwd.h")) > self.d_con(( > "sed -i -e 's/" > "define RTE_TEST_TX_DESC_DEFAULT.*$/" > "define RTE_TEST_TX_DESC_DEFAULT 2048/' " > - "./examples/l3fwd/main.c")) > + "./examples/l3fwd/l3fwd.h")) > self.__l3fwd_em =3D self.__init_l3fwd(EM) > self.__l3fwd_lpm =3D self.__init_l3fwd(LPM) >=20 > -- > 1.8.3.1