test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Zhao, HaiyangX" <haiyangx.zhao@intel.com>,
	"dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhao, HaiyangX" <haiyangx.zhao@intel.com>
Subject: Re: [dts] [PATCH V1] framework/dut:optimize code
Date: Tue, 18 Feb 2020 07:09:31 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCB560@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20200218042246.2994-1-haiyangx.zhao@intel.com>

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Haiyang Zhao
> Sent: Tuesday, February 18, 2020 12:23 PM
> To: dts@dpdk.org
> Cc: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> Subject: [dts] [PATCH V1] framework/dut:optimize code
> 
> *.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


  parent reply	other threads:[~2020-02-18  7:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18  4:22 Haiyang Zhao
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 ` Tu, Lijuan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-22  3:41 [dts] [PATCH V1] framework/dut:optimize code 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=8CE3E05A3F976642AAB0F4675D0AD20E0BBCB560@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=haiyangx.zhao@intel.com \
    /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).