From patchwork Fri Jul 28 14:33:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 129719 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B120042F67; Fri, 28 Jul 2023 08:20:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8918E40685; Fri, 28 Jul 2023 08:20:43 +0200 (CEST) Received: from mgamail.intel.com (unknown [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id BDEC94021E for ; Fri, 28 Jul 2023 08:20:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690525242; x=1722061242; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PzfQZamY1StD4nYyt+g6xv7rWj2aKLeods9fw/ich9Q=; b=oB0FtJKXwoiIKGPDlo3leYVaP3uCeAabrqTaPvObeSnKW9eMOVJzdrgK XYN9KsBzmCddNsTew5fE+Dx8mEWS2w3+ze/dZ2VTCBlwvPez0aiLXqtGg gO2jx5DDl8hKOKZvLJVdUtSrFeV7yeZnE/YGaYlxv30Vu5LNvZTuAUJov LAT4dEhlnl46LQE+wB1INsOf6I4rwiqq8RKLpb2IBba3zpyBBV/0gPA+S 3KOFJVQ5e4QHlMTuhtijvsMRpDlWqm8B8iNFhew7d70zJFfOxm+7ZzHID J/oe1Brdk5EhOAuBrl9dtx1EM2QZnY4ujzxTsiRUrjqni8FNu2ceq4znw Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="434801298" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="434801298" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 23:20:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="704397754" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="704397754" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 23:20:35 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2] tests/pmd_bonded: optimize scripts Date: Fri, 28 Jul 2023 22:33:04 +0800 Message-Id: <20230728143304.85230-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 in the "TLB (5)" binding mode, the current primary slave port will synchronize the MAC address of the binding port. therefore, modify the script to get the current primary slave port latest mac address. Signed-off-by: Jiale Song --- tests/TestSuite_pmd_bonded.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_pmd_bonded.py b/tests/TestSuite_pmd_bonded.py index f957d4e7..d0157cdb 100644 --- a/tests/TestSuite_pmd_bonded.py +++ b/tests/TestSuite_pmd_bonded.py @@ -111,11 +111,11 @@ class TestPmdBonded(TestCase): dut_dest_port = dest_port if not ether_ip.get("ether"): - ether["dest_mac"] = self.dut.get_mac_address(dut_dest_port) + ether["dest_mac"] = self.get_port_mac(dut_dest_port) ether["src_mac"] = "52:00:00:00:00:00" else: if not ether_ip["ether"].get("dest_mac"): - ether["dest_mac"] = self.dut.get_mac_address(dut_dest_port) + ether["dest_mac"] = self.get_port_mac(dut_dest_port) else: ether["dest_mac"] = ether_ip["ether"]["dest_mac"] if not ether_ip["ether"].get("src_mac"):