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 C581642672 for ; Fri, 29 Sep 2023 13:21:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A378B402AA; Fri, 29 Sep 2023 13:21:38 +0200 (CEST) Received: from office2.cesnet.cz (office2.cesnet.cz [78.128.248.237]) by mails.dpdk.org (Postfix) with ESMTP id AD3BB40287 for ; Fri, 29 Sep 2023 13:21:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2-2020; t=1695986497; bh=dyFPrgRrRoKfnlHCky1cSaZ0ACLx1kcYA7YtjYPX1TE=; h=Date:Subject:To:References:From:In-Reply-To; b=e2V/7kit9Ni7njyw/jjr5J8dn+HIM+VKtRejoecrhdhf/KO5eSwMwa0vzcYalebYK 45c5XhiiINgRmh6giwIIe9ULEj4LM+pI5+4Jc0cl0vE9fMXuQTLYcHtdba+taCCzN1 FzTdS6B/TbRdQVrwaPm7rLbgDxsiJMlv5WQYeI4qXs7nggcxF6kpn5QMwQI+i1kSXh xM/nPf19z89C3mZjmKj9nG+zit2hii9XIlKCV4UR3tESKroFvPsgOd0FEyh5RFdomK b16FpfxdKdKnSHyp6wzMbFC8+WoV7qxqAG2zWCKJk/IZdNqtDqDI/Usv5eTqfCOSQK GrP7FM+TZQJ3A== Received: from [192.168.2.170] (unknown [212.37.95.211]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id 464DA1180072; Fri, 29 Sep 2023 13:21:35 +0200 (CEST) Message-ID: <01555e8c-02ce-f5f1-25d4-c135f9a16106@cesnet.cz> Date: Fri, 29 Sep 2023 13:21:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Initialize SoftNIC to work with rte_flow rules Content-Language: en-US To: "Dumitrescu, Cristian" , "users@dpdk.org" References: From: =?UTF-8?B?THVrw6HFoSDFoGnFoW1pxaE=?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi Cristian, OK, thank you for the reply. Are you/anyone aware of a virtual driver that implements at least some level of rte_flow support? Thanks in advance. Lukas On 29. 09. 23 11:55, Dumitrescu, Cristian wrote: > >> -----Original Message----- >> From: Lukáš Šišmiš >> Sent: Friday, September 22, 2023 9:36 AM >> To: users@dpdk.org >> Cc: Dumitrescu, Cristian >> Subject: Initialize SoftNIC to work with rte_flow rules >> >> Hi all, >> >> >> I am trying to setup completely virtual development environment where it >> would be possible to develop applications with rte_flow rules. >> >> For this, I've found SoftNIC as a viable solution as this is supposed to >> be a software NIC that also supports rte_flow rules. >> >> However, I am having a hard time to set it up, I couldn't find good >> examples/documentation for this. Examples/docs found in >> ip_pipeline/pipeline examples are outdated. >> >> I was able to make it run through testpmd but without the support for >> rte_flow. >> >> Could you please help me to create spec/cli file that would support this >> use case? >> >> >> I am currently primarily interested in RX direction although being able >> to work in the TX direction would be greatly appreciated. >> >> The solution I am currently thinking of: >> >> net_pcap0 -> net_softnic0 -> DPDK application + TX( -> net_softnic0 -> >> net_ring/net_null) >> >> >> The RX path can be done - and I was able to run it in testpmd but then >> testpmd complained when I tried to apply rte_flow rules (not >> implemented). Makes sense considering that the softnic default pipeline >> doesn't contain any tables I guess. >> >> >> Thank you all in advance. >> >> I'm CC'ing Cristian as he is the SoftNIC maintainer. >> >> >> Cheers, >> >> Lukas Sismis >> > Hi Lukas, > > The Soft NIC driver does not currently have RTE_FLOW support. > > For now, you have to use the DPDK pipeline-specific API for populating the > pipeline tables: > > 1. You can put these commands in the firmware.cli file to be run at > Initialization. > > 2. You can use the run-time CLI (the best option) by doing "telnet 0.0.0.0 8086" > after the device initialization is complete. In case you're using test-pmd, beware > of the change required, as stated in the default "drivers/net/softnic/firmware.cli" > file. > > 3. You can call the C API directly in your app. > > Regards, > Cristian