From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 985FB918B for ; Thu, 17 Aug 2017 14:41:00 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Aug 2017 05:40:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,387,1498546800"; d="scan'208";a="138690522" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 17 Aug 2017 05:40:57 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 17 Aug 2017 05:40:57 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.236]) by shsmsx102.ccr.corp.intel.com ([169.254.2.183]) with mapi id 14.03.0319.002; Thu, 17 Aug 2017 20:40:54 +0800 From: "Liu, Yong" To: Jianbo Liu , "dts@dpdk.org" , "herbert.guan@arm.com" Thread-Topic: [dts] [PATCH] tests/kni: fix failures for kni Thread-Index: AQHTFxkGJoL/OVhJ10WfIVQvW1/ONKKIfB9Q Date: Thu, 17 Aug 2017 12:40:54 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62E555B2@SHSMSX103.ccr.corp.intel.com> References: <1502947351-14446-1-git-send-email-jianbo.liu@linaro.org> In-Reply-To: <1502947351-14446-1-git-send-email-jianbo.liu@linaro.org> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 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/kni: fix failures for kni 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: , X-List-Received-Date: Thu, 17 Aug 2017 12:41:02 -0000 Hi Jianbo, Is there any particular reason for not chose hyper-threading cores? There're some performance cases are depending on hyper-threading cores.=20 If hyper-threading is not enabled on the platform, those cases won't be abl= e to run.=20 Could you please clear the reason? Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jianbo Liu > Sent: Thursday, August 17, 2017 1:23 PM > To: dts@dpdk.org; herbert.guan@arm.com > Cc: Jianbo Liu > Subject: [dts] [PATCH] tests/kni: fix failures for kni >=20 > The tests need to enable KNI ethtool, and recomple DPDK. > Also bind to thread 0 of each core for function tests. >=20 > Signed-off-by: Jianbo Liu > --- > tests/TestSuite_kni.py | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py > index acd6230..93203f5 100644 > --- a/tests/TestSuite_kni.py > +++ b/tests/TestSuite_kni.py > @@ -52,8 +52,8 @@ packet_sizes_routing =3D [64, 256] >=20 > ports_cores_template =3D > '\(P([0123]),(C\{\d.\d.\d\}),(C\{\d.\d.\d\}),(C\{\d.\d.\d\}),?(C\{\d.\d.\= d > \})?\),?'=09 >=20 > -default_1_port_cores_config =3D '(P0,C{1.0.0},C{1.1.0},C{1.0.1})' > -default_2_port_cores_config =3D > '(P0,C{1.0.0},C{1.1.0},C{1.0.1}),(P1,C{1.2.0},C{1.3.0},C{1.2.1})' > +default_1_port_cores_config =3D '(P0,C{1.0.0},C{1.1.0},C{1.2.0})' > +default_2_port_cores_config =3D > '(P0,C{1.0.0},C{1.1.0},C{1.2.0}),(P1,C{1.3.0},C{1.4.0},C{1.5.0})' >=20 > stress_test_iterations =3D 50 > stress_test_random_iterations =3D 50 > @@ -258,6 +258,9 @@ class TestKni(TestCase): > self.verify('no brctl' not in out, > "The linux tool brctl is needed to run this test > suite") >=20 > + self.dut.send_expect("sed -i -e > 's/KNI_KMOD_ETHTOOL=3Dn$/KNI_KMOD_ETHTOOL=3Dy/' config/common_base", "# "= , 30) > + self.dut.build_install_dpdk(self.target) > + > out =3D self.dut.send_expect("make -C ./examples/kni/", "# ", 5) > self.verify('Error' not in out, "Compilation failed") >=20 > @@ -1207,5 +1210,9 @@ class TestKni(TestCase): > """ > Run after each test suite. > """ > + > + self.dut.send_expect("sed -i -e > 's/KNI_KMOD_ETHTOOL=3Dy$/KNI_KMOD_ETHTOOL=3Dn/' config/common_base", "# "= , 30) > + self.dut.build_install_dpdk(self.target) > + > self.dut.kill_all() > self.dut.send_expect("rmmod rte_kni", "# ", 10) > -- > 1.9.1