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 30F67A0352; Wed, 6 May 2020 05:13:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2895C1D6CB; Wed, 6 May 2020 05:13:11 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 7017E1D683 for ; Wed, 6 May 2020 05:13:09 +0200 (CEST) IronPort-SDR: YqlqmZxaL/cI2m7f7r46UCh0BE4gx384Sdc0cdIogyZHyiBLUS4Ku3Aq42W1KAqgldlYNvR6fE ASqLwrpelFLA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 20:13:09 -0700 IronPort-SDR: ZdUpqe4dWd/DkhCyOex3QlzQWeUC9cons1Ra9DmLZCyniBWPGfsKsmcmSKDv86Lbariz/UoFNH BWZyVX0nWb9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="304672076" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 05 May 2020 20:13:09 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:13:08 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:13:08 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.225]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:13:06 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]nics/net_device: fix multi_sections in execution.cfg issue Thread-Index: AQHWHSt0g2S0izVABECkPgNqmmSSkqiabizw Date: Wed, 6 May 2020 03:13:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21D49@SHSMSX101.ccr.corp.intel.com> References: <1588057146-455889-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1588057146-455889-1-git-send-email-qimaix.xiao@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 V1]nics/net_device: fix multi_sections in execution.cfg issue 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: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Tuesday, April 28, 2020 2:59 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]nics/net_device: fix multi_sections in execution= .cfg > issue >=20 > *. fix second section in execution.cfg lost session connection of tester >=20 > Signed-off-by: Xiao Qimai > --- > nics/net_device.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/nics/net_device.py b/nics/net_device.py index c7d4c00..2dc0f= b1 > 100644 > --- a/nics/net_device.py > +++ b/nics/net_device.py > @@ -895,7 +895,7 @@ def get_from_list(host, domain_id, bus_id, > devfun_id): > for nic in NICS_LIST: > if host =3D=3D nic['host']: > pci =3D ':'.join((domain_id, bus_id, devfun_id)) > - if pci =3D=3D nic['pci']: > + if pci =3D=3D nic['pci'] and nic['port'].crb.session: > return nic['port'] > return None >=20 > -- > 1.8.3.1