From patchwork Fri Jul 28 13:53:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 129718 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 4182F42F65; Fri, 28 Jul 2023 07:41:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 17E7640EE3; Fri, 28 Jul 2023 07:41:22 +0200 (CEST) Received: from mgamail.intel.com (unknown [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id D04084021E for ; Fri, 28 Jul 2023 07:41:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690522880; x=1722058880; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DhvNCii1UJxl4TN9HtWxxx0HedYLCZ1ytD/042GoSNE=; b=bogoZfsfzUhXgXhZ44kb6GoljHpdcoYWKyFpIEivAZfzcXPN5FzJW0E2 XNnA3pn46RTH0awD7MeMeZkXxmSCwoygIAc63/Ei0r6i/wOVbLEQNRsNP aJAkVJCAVNDeupj5gPN3bVYbGfwG5+wOUEXpymkGGAJzWMeG2N7EPql+x 0mYOthcu00WET81PXcnTTGbwNygo2XZ7BRxIYiZ7jgeSYPYyGenrmck1c gfIeYyhu4qqWCj66TCYF5i41t/t9C4pkQvqGN/c/TgrZY7+ozM9zHCv8+ pqw9NXl1AWAciqk6Ir1CEGWtk0W+TJauyzs7RWJvL5XrhPG2FqB0uoF9v Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="348792005" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="348792005" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 22:41:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="704393005" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="704393005" 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 22:41:16 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/pmd_bonded: optimize scripts Date: Fri, 28 Jul 2023 21:53:45 +0800 Message-Id: <20230728135345.82666-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_mac_address(dut_dest_port) else: ether["dest_mac"] = ether_ip["ether"]["dest_mac"] if not ether_ip["ether"].get("src_mac"):