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 D3B1043D5B; Tue, 26 Mar 2024 20:05:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F08BD427D7; Tue, 26 Mar 2024 20:04:38 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id BEDE2410F2 for ; Tue, 26 Mar 2024 20:04:36 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E2E6F2F4; Tue, 26 Mar 2024 12:05:09 -0700 (PDT) Received: from localhost.localdomain (unknown [10.57.16.115]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4EF233F64C; Tue, 26 Mar 2024 12:04:35 -0700 (PDT) From: Luca Vizzarro To: dev@dpdk.org Cc: =?UTF-8?q?Juraj=20Linke=C5=A1?= , Luca Vizzarro , Jack Bond-Preston , Honnappa Nagarahalli Subject: [PATCH 4/6] dts: use testpmd params for scatter test suite Date: Tue, 26 Mar 2024 19:04:20 +0000 Message-Id: <20240326190422.577028-5-luca.vizzarro@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326190422.577028-1-luca.vizzarro@arm.com> References: <20240326190422.577028-1-luca.vizzarro@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Update the buffer scatter test suite to use TestPmdParameters instead of the StrParams implementation. Signed-off-by: Luca Vizzarro Reviewed-by: Jack Bond-Preston Reviewed-by: Honnappa Nagarahalli --- dts/tests/TestSuite_pmd_buffer_scatter.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/dts/tests/TestSuite_pmd_buffer_scatter.py b/dts/tests/TestSuite_pmd_buffer_scatter.py index 4cdbdc4272..c6d313fc64 100644 --- a/dts/tests/TestSuite_pmd_buffer_scatter.py +++ b/dts/tests/TestSuite_pmd_buffer_scatter.py @@ -23,7 +23,11 @@ from scapy.utils import hexstr # type: ignore[import] from framework.params import StrParams -from framework.remote_session.testpmd_shell import TestPmdForwardingModes, TestPmdShell +from framework.remote_session.testpmd_shell import ( + TestPmdForwardingModes, + TestPmdShell, + TestPmdParameters, +) from framework.test_suite import TestSuite @@ -104,16 +108,15 @@ def pmd_scatter(self, mbsize: int) -> None: """ testpmd = self.sut_node.create_interactive_shell( TestPmdShell, - app_parameters=StrParams( - "--mbcache=200 " - f"--mbuf-size={mbsize} " - "--max-pkt-len=9000 " - "--port-topology=paired " - "--tx-offloads=0x00008000" + app_parameters=TestPmdParameters( + forward_mode=TestPmdForwardingModes.mac, + mbcache=200, + mbuf_size=[mbsize], + max_pkt_len=9000, + tx_offloads=0x00008000, ), privileged=True, ) - testpmd.set_forward_mode(TestPmdForwardingModes.mac) testpmd.start() for offset in [-1, 0, 1, 4, 5]: -- 2.34.1