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 8825A41B98; Thu, 9 Feb 2023 07:56:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8281C4161A; Thu, 9 Feb 2023 07:56:38 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id C045C4282D for ; Thu, 9 Feb 2023 07:56:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675925796; x=1707461796; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DRIH+ugGBeX5jb2SQgwJ9DwutN7bbA2Cd4r+d27T/uw=; b=amJzTGx0Hfidm7VotjZLJ9AgvayzLODT4QrMBs+dPvJfq7eLq7v79dp0 Neg9v1vxLvFuJdVDl5fHCMr8YMpFUYBYuLAPFX1CizxbEFNsfR8ViKqSv mUBMgTTpn/V29LI7CiLj1HOGS9UCPmlqMZluFYOQ1T8hYG9YGRxLPfpxo uclia/ulDVxgUr0NquObntKAmgmLfDgmMs5Yrodgl96GXb6nszaLQk7Nz 68TfKrMFbWBDjrl4CwvNJpQyJxDITqxXq+hv1I6rFQngRoafTRHecykwV EaeAjfhDKioi8ekRDh6aMsUtJgHbasmtGXCqRPQk5QezIm6SVKMLxn2Hj w==; X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="392420770" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="392420770" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 22:56:35 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="810224094" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="810224094" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 22:56:34 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1 2/4] tests/pmd_bonded_8023ad: modify the script to adapt to changes in dpdk Date: Thu, 9 Feb 2023 14:53:49 +0000 Message-Id: <20230209145351.1140496-3-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230209145351.1140496-1-songx.jiale@intel.com> References: <20230209145351.1140496-1-songx.jiale@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 the display information of the binding port in dpdk-testpmd has changed. modify the script to adapt to this change. According to dpdk commit f3b5f3d35c59e1("app/testpmd: use dump API to show bonding info"). Signed-off-by: Song Jiale --- tests/TestSuite_pmd_bonded_8023ad.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_pmd_bonded_8023ad.py b/tests/TestSuite_pmd_bonded_8023ad.py index c1bf2759..1921a942 100644 --- a/tests/TestSuite_pmd_bonded_8023ad.py +++ b/tests/TestSuite_pmd_bonded_8023ad.py @@ -362,7 +362,9 @@ class TestBonding8023AD(TestCase): # create commandline option format bonding_name = "net_bonding0" slaves_pci = ["slave=" + pci for pci in slave_pcis] - bonding_mode = "mode={0}".format(str(MODE_LACP)) + p = r"\w+\((\d+)\)" + mode_id = int(re.match(p, str(MODE_LACP)).group(1)) + bonding_mode = "mode={0}".format(mode_id) agg_config = "agg_mode={0}" vdev_format = ",".join([bonding_name] + slaves_pci + [bonding_mode, agg_config]) # command line option -- 2.25.1