* Re: [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info
2021-09-18 13:37 [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info Yan Xia
@ 2021-09-18 5:51 ` Chen, LingliX
2021-09-27 5:50 ` Tu, Lijuan
0 siblings, 1 reply; 3+ messages in thread
From: Chen, LingliX @ 2021-09-18 5:51 UTC (permalink / raw)
To: Xia, YanX, dts
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Yan Xia
> Sent: Saturday, September 18, 2021 9:37 PM
> To: dts@dpdk.org
> Cc: Xia, YanX <yanx.xia@intel.com>
> Subject: [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port
> info
>
Tested-by: Yan Xia <yanx.xia@intel.com>
[-- Attachment #2: TestMtuUpdate.log --]
[-- Type: application/octet-stream, Size: 111747 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info
@ 2021-09-18 13:37 Yan Xia
2021-09-18 5:51 ` Chen, LingliX
0 siblings, 1 reply; 3+ messages in thread
From: Yan Xia @ 2021-09-18 13:37 UTC (permalink / raw)
To: dts; +Cc: Yan Xia
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info
2021-09-18 5:51 ` Chen, LingliX
@ 2021-09-27 5:50 ` Tu, Lijuan
0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-09-27 5:50 UTC (permalink / raw)
To: Chen, LingliX, Xia, YanX, dts
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Chen, LingliX
> Sent: 2021年9月18日 13:52
> To: Xia, YanX <yanx.xia@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester
> port info
>
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Yan Xia
> > Sent: Saturday, September 18, 2021 9:37 PM
> > To: dts@dpdk.org
> > Cc: Xia, YanX <yanx.xia@intel.com>
> > Subject: [dts] [PATCH V1] tests/mtu_update: Modify the way to get
> > tester port info
> >
> Tested-by: Yan Xia <yanx.xia@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-27 5:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-18 13:37 [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info Yan Xia
2021-09-18 5:51 ` Chen, LingliX
2021-09-27 5:50 ` Tu, Lijuan
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).