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 9F735A046B for ; Mon, 19 Aug 2019 12:07:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 720B61BE81; Mon, 19 Aug 2019 12:07:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D5DA51B96B for ; Mon, 19 Aug 2019 12:07:14 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Aug 2019 03:07:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,403,1559545200"; d="scan'208";a="168705084" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 19 Aug 2019 03:07:13 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 19 Aug 2019 03:07:13 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.163]) with mapi id 14.03.0439.000; Mon, 19 Aug 2019 18:07:11 +0800 From: "Lin, Xueqin" To: "Lin, Xueqin" , "20190819110625.73544-9-qi.fu@intel.com" <20190819110625.73544-9-qi.fu@intel.com>, "dts@dpdk.org" CC: "Fu, Qi" Thread-Topic: [dts] [PATCH V2 08/17]tests/TestSuite_ipgre: add carlsville to support nic of ipgre Thread-Index: AQHVVnJdz8hARPN1dEqSD9PMUHJacacCPfCA Date: Mon, 19 Aug 2019 10:07:11 +0000 Message-ID: <0D300480287911409D9FF92C1FA2A3355B55509A@SHSMSX104.ccr.corp.intel.com> References: <20190819175759.25357-1-qi.fu@intel.com> <0D300480287911409D9FF92C1FA2A3355B55505A@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <0D300480287911409D9FF92C1FA2A3355B55505A@SHSMSX104.ccr.corp.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 V2 08/17]tests/TestSuite_ipgre: add carlsville to support nic of ipgre 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" Sorry, wrong for the verify function, or just simple to list supported nic = list.=20 self.verify(self.nic in ["fortville_eagle", "fortville_spirit", "fortville_= spirit_single", "fortville_25g", "carlsville"], "GRE tunnel packet type onl= y support by fortville and carlsville") Best regards, Xueqin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lin, Xueqin > Sent: Monday, August 19, 2019 5:41 PM > To: 20190819110625.73544-9-qi.fu@intel.com; dts@dpdk.org > Cc: Fu, Qi > Subject: Re: [dts] [PATCH V2 08/17]tests/TestSuite_ipgre: add carlsville = to > support nic of ipgre >=20 > Strange for the change, you can try below. >=20 > + self.verify(self.nic.startswith("fortville") or > + self.nic.startswith("carlsville "), "GRE tunnel packet type only > + support by Fortville and carlsville") >=20 > Best regards, > Xueqin >=20 >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of qifu > > Sent: Tuesday, August 20, 2019 1:58 AM > > To: dts@dpdk.org > > Cc: Fu, Qi > > Subject: [dts] [PATCH V2 08/17]tests/TestSuite_ipgre: add carlsville > > to support nic of ipgre > > > > Add carlsville to support nic of ipgre. > > Signed-off-by: qifu > > --- > > tests/TestSuite_ipgre.py | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index > > 6f465fa..2a66928 100644 > > --- a/tests/TestSuite_ipgre.py > > +++ b/tests/TestSuite_ipgre.py > > @@ -63,8 +63,9 @@ class TestIpgre(TestCase): > > """ > > self.printFlag =3D self._enable_debug > > ports =3D self.dut.get_ports() > > - self.verify(self.nic.startswith("fortville"), > > - "GRE tunnel packet type only support by Fortville"= ) > > + if self.nic !=3D "carlsville": > > + self.verify(self.nic.startswith("fortville"), > > + "GRE tunnel packet type only support by > > + Fortville and carlsville") > > self.verify(len(ports) >=3D 1, "Insufficient ports for testing= ") > > valports =3D [_ for _ in ports if self.tester.get_local_port(_= ) !=3D -1] > > # start testpmd > > -- > > 2.17.1