diff mbox series

[V1] tests/mtu_update: Modify the way to get tester port info

Message ID 20210918133726.91512-1-yanx.xia@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/mtu_update: Modify the way to get tester port info | expand

Checks

Context Check Description
ci/Intel-suite-dts-test success Testing OK

Commit Message

Yan Xia Sept. 18, 2021, 1:37 p.m. UTC
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(-)

Comments

Chen, LingliX Sept. 18, 2021, 5:51 a.m. UTC | #1
> -----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>
Tu, Lijuan Sept. 27, 2021, 5:50 a.m. UTC | #2
> -----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
diff mbox series

Patch

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)