From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A59CCA0C47; Sat, 18 Sep 2021 07:35:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D8D740041; Sat, 18 Sep 2021 07:35:43 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C37D54003D for ; Sat, 18 Sep 2021 07:35:41 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="203079781" X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="203079781" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 22:35:39 -0700 X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="473326298" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 22:35:38 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Sat, 18 Sep 2021 13:37:26 +0000 Message-Id: <20210918133726.91512-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" get tester port info by tester local port connectting to specified dut port Signed-off-by: Yan Xia --- 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