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 F162743E33; Wed, 10 Apr 2024 12:53:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 770DC402C7; Wed, 10 Apr 2024 12:53:51 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 986C5402C5 for ; Wed, 10 Apr 2024 12:53:49 +0200 (CEST) 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 D015D139F; Wed, 10 Apr 2024 03:54:18 -0700 (PDT) Received: from [10.1.32.34] (FVFG51LCQ05N.cambridge.arm.com [10.1.32.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4944F3F6C4; Wed, 10 Apr 2024 03:53:48 -0700 (PDT) Message-ID: Date: Wed, 10 Apr 2024 11:53:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/6] dts: use testpmd params for scatter test suite Content-Language: en-GB To: =?UTF-8?Q?Juraj_Linke=C5=A1?= , Jeremy Spewock Cc: dev@dpdk.org, Jack Bond-Preston , Honnappa Nagarahalli References: <20240326190422.577028-1-luca.vizzarro@arm.com> <20240326190422.577028-5-luca.vizzarro@arm.com> From: Luca Vizzarro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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 On 09/04/2024 20:12, Juraj Linkeš wrote: >> @@ -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) > > Jeremy, does this change the test? Instead of configuring the fw mode > after starting testpmd, we're starting testpmd with fw mode > configured. I am not Jeremy (please Jeremy still reply), but we discussed this on Slack. Reading through the testpmd source code, setting arguments like forward-mode in the command line, is the exact equivalent of calling `set forward mode` right after start-up. So it is equivalent in theory. > If not, we should remove the testpmd.set_forward_mode method, as it's > not used anymore. Could there be test cases that change the forward mode multiple times in the same shell, though? As this could still be needed to cover this.