From patchwork Fri Feb 17 12:20:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 124104 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 494D441CBA; Fri, 17 Feb 2023 05:23:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 174AC41143; Fri, 17 Feb 2023 05:23:19 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 3FAA040A8B for ; Fri, 17 Feb 2023 05:23:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676607798; x=1708143798; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DRIH+ugGBeX5jb2SQgwJ9DwutN7bbA2Cd4r+d27T/uw=; b=InJHHa6Kizf3a+rjrrIWk1AhMejY/dRVSTGdnlsBsfrsGXyNl4OxhArH ivQfZbna7vnlmdE2sv56C4+41V9GsAZfrgzYoCqBKvF/iY17RZrUr6xgU 50L59ht278DGJznqn2nAX2cEBPmSyVx0AihQTOK3/z+ysR63YIbWMb368 7NB1fvxTePAgDPJnqKUrIc588fT4OXz2ZaWxb4krAuovHKk/7S2BlGVZi cfmABYeRaDpSdARXIaKAxP9bhqbXCMWDMjPpsrDj+hm6fyhmKvFLYYCbH Mq2KAd2pSkbGSCLkv/ggPBQRd9LwhEljXDCISygEZ+BDldSrMIA9sMMmv Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="359353886" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="359353886" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 20:23:17 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="663757844" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="663757844" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 20:23:16 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V2 3/5] tests/pmd_bonded_8023ad: modify script to adapt changes in dpdk Date: Fri, 17 Feb 2023 12:20:21 +0000 Message-Id: <20230217122023.2345221-4-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230217122023.2345221-1-songx.jiale@intel.com> References: <20230217122023.2345221-1-songx.jiale@intel.com> 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 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