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 1C1DAA0613 for ; Mon, 23 Sep 2019 08:50:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E7F711BE8F; Mon, 23 Sep 2019 08:50:04 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 4C9E54CE4 for ; Mon, 23 Sep 2019 08:50:03 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 23:50:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="203063231" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by fmsmga001.fm.intel.com with ESMTP; 22 Sep 2019 23:50:02 -0700 From: yufengmx To: dts@dpdk.org, zhaoyan.chen@intel.com, lijuan.tu@intel.com Cc: yufengmx Date: Mon, 23 Sep 2019 14:51:38 +0800 Message-Id: <20190923065138.8343-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190923065138.8343-1-yufengx.mo@intel.com> References: <20190923065138.8343-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" make pktgen trex port mapping to be compatible with pci address mapping sytle. Signed-off-by: yufengmx --- framework/dut.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() == 'trex': - if self.tester.ports_info[remotePort]['intf'].lower() == peer.lower(): + if self.tester.ports_info[remotePort]['intf'].lower() == peer.lower() or \ + self.tester.ports_info[remotePort]['pci'].lower() == peer.lower(): hits[remotePort] = True self.ports_map[dutPort] = remotePort break -- 2.21.0