test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yan Xia <yanx.xia@intel.com>
To: dts@dpdk.org
Cc: Yan Xia <yanx.xia@intel.com>
Subject: [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info
Date: Sat, 18 Sep 2021 13:37:26 +0000	[thread overview]
Message-ID: <20210918133726.91512-1-yanx.xia@intel.com> (raw)

get tester port info by tester local port connectting to specified dut
port

Signed-off-by: Yan Xia <yanx.xia@intel.com>
---
 tests/TestSuite_mtu_update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py
index f1da8660..2aff926e 100644
--- a/tests/TestSuite_mtu_update.py
+++ b/tests/TestSuite_mtu_update.py
@@ -95,7 +95,7 @@ class TestMtuUpdate(TestCase):
         return self.dut.get_mac_address(port_id)
 
     def send_scapy_packet(self, port_id: int, packet: str):
-        itf = self.tester.get_interface(port_id)
+        itf = self.tester.get_interface(self.tester.get_local_port(port_id))
 
         self.tester.scapy_foreground()
         mac = self.dut.get_mac_address(port_id)
-- 
2.32.0


             reply	other threads:[~2021-09-18  5:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-18 13:37 Yan Xia [this message]
2021-09-18  5:51 ` Chen, LingliX
2021-09-27  5:50   ` 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=20210918133726.91512-1-yanx.xia@intel.com \
    --to=yanx.xia@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).