From patchwork Fri Aug 25 15:28:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 130739 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 963E8430E2; Fri, 25 Aug 2023 09:20:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9063143254; Fri, 25 Aug 2023 09:20:03 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 39BF542D13 for ; Fri, 25 Aug 2023 09:20:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692948001; x=1724484001; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OOif5Jf1YGpVDePCmBmOTZYq4BX95+VvCvDacXSiWkI=; b=jSikExyBiu015gOD3t0wATVHiDVJRRclC8qpcLcnG31tbxk1DHLSKq5k QHPm9yyyQ8eU+Pz8XKd7E6/uMewE5MTT1aHezcFcmWXDIbjn8IapyDEYS e6nTYC7Gk3PxWox0C/eIQ3Y951GRXXGGoX4OUPyQxeintfzef8A7ZnWKf pnJnplYhF7oSiHmQtukNqqdv47sbDrmplFuvTnbYprXPBesiXjueAWD/5 6P5q27HoPjPyzuJ4+o6wjO2wNRMpAAQXp3r1WyNxeLCR9pzNrie332HcY /u2a3ppKzc/i8UghX7+zBEThjZZsIk5vXEECG1NjQH/6zapMq+rs8ieB2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="405654471" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="405654471" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 00:20:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="802869652" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="802869652" Received: from unknown (HELO localhost.localdomain) ([10.239.252.96]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 00:19:58 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 6/9] framework/pmd_output: optimize methods to adapt to MEV testing Date: Fri, 25 Aug 2023 15:28:22 +0000 Message-Id: <20230825152825.2831565-7-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230825152825.2831565-1-songx.jiale@intel.com> References: <20230825152825.2831565-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 optimize methods to adapt to MEV testing. Signed-off-by: Jiale Song --- framework/pmd_output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index c8e8b50f..d51c3a9b 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -135,6 +135,7 @@ class PmdOutput: config["ports"] = [ self.dut.ports_info[i]["pci"] for i in range(len(self.dut.ports_info)) ] + config["ports"] = list(set(config["ports"])) all_eal_param = self.dut.create_eal_parameters( fixed_prefix=fixed_prefix, socket=socket, **config ) @@ -145,6 +146,8 @@ class PmdOutput: if self.session != self.dut: self.session.send_expect("cd %s" % self.dut.base_dir, "# ") out = self.session.send_expect(command, expected, timeout) + if self.dut.test_mev == "true": + self.dut.mev_config_rx_port(out=out) self.command = command # wait 10s to ensure links getting up before test start. sleep(10)