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 52868A0613 for ; Mon, 23 Sep 2019 08:57:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 46B661B9A9; Mon, 23 Sep 2019 08:57:40 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 080351B994 for ; Mon, 23 Sep 2019 08:57:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 23:57:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="363537968" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga005.jf.intel.com with ESMTP; 22 Sep 2019 23:57:36 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Sep 2019 23:57:36 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Sep 2019 23:57:36 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.195]) with mapi id 14.03.0439.000; Mon, 23 Sep 2019 14:57:34 +0800 From: "Mo, YufengX" To: "dts@dpdk.org" , "Chen, Zhaoyan" , "Tu, Lijuan" Thread-Topic: [dts][PATCH V1 1/1] [next]dts/pktgen: add support pci address mapping sytle Thread-Index: AQHVcdsmyx6JV1ujtkKMAS+McloKHac41Ihw Date: Mon, 23 Sep 2019 06:57:33 +0000 Message-ID: References: <20190923065138.8343-1-yufengx.mo@intel.com> <20190923065138.8343-2-yufengx.mo@intel.com> In-Reply-To: <20190923065138.8343-2-yufengx.mo@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 1/1] [next]dts/pktgen: add support pci address mapping sytle 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 Mo, YufengX > -----Original Message----- > From: Mo, YufengX > Sent: Monday, September 23, 2019 2:52 PM > To: dts@dpdk.org; Chen, Zhaoyan ; Tu, Lijuan > Cc: Mo, YufengX > Subject: [dts][PATCH V1 1/1] [next]dts/pktgen: add support pci address ma= pping sytle >=20 >=20 > make pktgen trex port mapping to be compatible with pci address mapping s= ytle. >=20 > Signed-off-by: yufengmx > --- > framework/dut.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py > index fc4a2e6..c2ed0f1 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -986,7 +986,8 @@ class Dut(Crb): > if peer is not None: > for remotePort in range(len(self.tester.ports_info)): > if self.tester.ports_info[remotePort]['type'].lower(= ) =3D=3D 'trex': > - if self.tester.ports_info[remotePort]['intf'].lo= wer() =3D=3D peer.lower(): > + if self.tester.ports_info[remotePort]['intf'].lo= wer() =3D=3D peer.lower() or \ > + self.tester.ports_info[remotePort]['pci'].low= er() =3D=3D peer.lower(): > hits[remotePort] =3D True > self.ports_map[dutPort] =3D remotePort > break > -- > 2.21.0