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 91E3FA00BE; Tue, 28 Apr 2020 09:07:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 75D981D42B; Tue, 28 Apr 2020 09:07:08 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DDD9E1D422 for ; Tue, 28 Apr 2020 09:07:06 +0200 (CEST) IronPort-SDR: p1OueBXNTj9n6ujetvJlnlg/ZBH7Jw4Aw7HYRyeN/rNAunsPvGl5haPymEbb4hvMKM7fj8unmq m4alrYnFbkDw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 00:07:06 -0700 IronPort-SDR: eN0Qii9RE64vP9GTmGfsz6hjknBft9KiRs+cN0ha56/KDeesGVupLAweNgWajYN0LZfxgfenbj Y4bnD3WSFkdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,327,1583222400"; d="scan'208";a="367406855" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 28 Apr 2020 00:07:05 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 28 Apr 2020 00:06:58 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 28 Apr 2020 15:06:37 +0800 Received: from shsmsx604.ccr.corp.intel.com ([10.109.6.214]) by SHSMSX604.ccr.corp.intel.com ([10.109.6.214]) with mapi id 15.01.1713.004; Tue, 28 Apr 2020 15:06:37 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1]nics/net_device: fix multi_sections in execution.cfg issue Thread-Index: AQHWHSt3D6atKZtfmkeRy2LIubdWiaiOHK5g Date: Tue, 28 Apr 2020 07:06:37 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] 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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > 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