test suite reviews and discussions
 help / color / mirror / Atom feed
From: Haiyang Zhao <haiyangx.zhao@intel.com>
To: dts@dpdk.org
Cc: Haiyang Zhao <haiyangx.zhao@intel.com>
Subject: [dts] [PATCH V1] framework/dut:optimize code
Date: Tue, 18 Feb 2020 12:22:44 +0800	[thread overview]
Message-ID: <20200218042246.2994-1-haiyangx.zhao@intel.com> (raw)

*.test performance with trex support two port map methods, 
  add the pci map method.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/dut.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/dut.py b/framework/dut.py
index 4f376f5..4b8bd3e 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -1149,7 +1149,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.17.1


             reply	other threads:[~2020-02-18  4:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18  4:22 Haiyang Zhao [this message]
2020-02-18  4:22 ` [dts] [PATCH V1] tests/l2fwd:fix a bug Haiyang Zhao
2020-02-18  7:09   ` Tu, Lijuan
2020-02-18  4:22 ` [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt:optimize code Haiyang Zhao
2020-02-18  7:09   ` Tu, Lijuan
2020-02-18  7:09 ` [dts] [PATCH V1] framework/dut:optimize code Tu, Lijuan
  -- strict thread matches above, loose matches on Subject: below --
2020-01-22  3:41 Haiyang Zhao
2020-02-10  8:54 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200218042246.2994-1-haiyangx.zhao@intel.com \
    --to=haiyangx.zhao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).