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 5A117A00BE; Tue, 28 Apr 2020 09:05:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2C76E1D42B; Tue, 28 Apr 2020 09:05:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id A08B21D422 for ; Tue, 28 Apr 2020 09:05:32 +0200 (CEST) IronPort-SDR: mYfqtKFjD26qVc97R7gLhYRodeOHM+AD1uePS+l1jpYJNUwnW92PhRh0TiUVmOO/VRnPqWZmWu tn9zO/9I+GJQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 00:05:31 -0700 IronPort-SDR: cAFYH3bB0MqKVKVJmeEBUXTf0uRtObxyx74p+T8nVrdGxAbQ3zt/Z4TvLFNKLr7lCWyCqkJuLT ce4a3VwA5JNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,327,1583222400"; d="scan'208";a="275743981" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 28 Apr 2020 00:05:30 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 28 Apr 2020 14:59:06 +0800 Message-Id: <1588057146-455889-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" *. fix second section in execution.cfg lost session connection of tester Signed-off-by: Xiao Qimai --- nics/net_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nics/net_device.py b/nics/net_device.py index c7d4c00..2dc0fb1 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 == nic['host']: pci = ':'.join((domain_id, bus_id, devfun_id)) - if pci == nic['pci']: + if pci == nic['pci'] and nic['port'].crb.session: return nic['port'] return None -- 1.8.3.1