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 15DEE44088; Tue, 21 May 2024 17:47:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02E0D40684; Tue, 21 May 2024 17:47:38 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 2A0714067E for ; Tue, 21 May 2024 17:47:37 +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 B504ADA7; Tue, 21 May 2024 08:48:00 -0700 (PDT) Received: from [10.1.28.17] (FVFG51LCQ05N.cambridge.arm.com [10.1.28.17]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A90F83F762; Tue, 21 May 2024 08:47:35 -0700 (PDT) Message-ID: <9eaa28c5-6f88-4355-8959-3ab3d78c5fcd@arm.com> Date: Tue, 21 May 2024 16:47:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2] dts: skip test cases based on capabilities Content-Language: en-GB To: =?UTF-8?Q?Juraj_Linke=C5=A1?= , thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, jspewock@iol.unh.edu, probb@iol.unh.edu, paul.szczepanek@arm.com, npratte@iol.unh.edu Cc: dev@dpdk.org References: <20240301155416.96960-1-juraj.linkes@pantheon.tech> <20240411084829.64984-1-juraj.linkes@pantheon.tech> From: Luca Vizzarro In-Reply-To: <20240411084829.64984-1-juraj.linkes@pantheon.tech> 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 11/04/2024 09:48, Juraj Linkeš wrote: > + def get_capas_rxq( > + self, supported_capabilities: MutableSet, unsupported_capabilities: MutableSet > + ) -> None: > + """Get all rxq capabilities and divide them into supported and unsupported. > + > + Args: > + supported_capabilities: A set where capabilities which are supported will be stored. > + unsupported_capabilities: A set where capabilities which are > + not supported will be stored. > + """ > + self._logger.debug("Getting rxq capabilities.") > + command = "show rxq info 0 0" > + rxq_info = self.send_command(command) > + for line in rxq_info.split("\n"): > + bare_line = line.strip() > + if bare_line.startswith("RX scattered packets:"): > + if bare_line.endswith("on"): > + supported_capabilities.add(NicCapability.scattered_rx) > + else: > + unsupported_capabilities.add(NicCapability.scattered_rx) It doesn't look like this works in normal condition. I've noticed that this appears as "on" if I set --max-pkt-len=9000 on the E810-C. Otherwise it's off... and with Jeremy's patch based on this, the pmd_buffer_scatter test gets skipped when it's supported. Apart from this, everything else seems to work as expected. I'll send a review of the code as soon as possible.