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 C75C742C6E for ; Fri, 9 Jun 2023 15:50:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8962542DB8; Fri, 9 Jun 2023 15:50:31 +0200 (CEST) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 6C14A40A84 for ; Fri, 9 Jun 2023 15:50:29 +0200 (CEST) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-652a6cf1918so1514828b3a.1 for ; Fri, 09 Jun 2023 06:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686318628; x=1688910628; h=content-transfer-encoding:to:references:message-id:in-reply-to :thread-topic:subject:from:date:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cneTQJDXoYoH8enlQOLGgzp+PRZO62YxWTdB5nD9dbI=; b=jdiMTaoYvJJQFpjTe1yxJ1qKzWuKFGque6GyZP42BjkNppald4Vqc7Gy5zRBpnw2Oi dh2GqMasr+M5di7BCoHcO+WiMIH1rAu+Tc0u6xUuRL8AYg2n7pDI6dtQX7ea7Hi5Fat6 sGc8eJnfagRpg66fehud93H9V3z5g/FA+EUWdDUVoGRUrUe1IXYgwhcmAUnQnbPw76nU pMiiIVweffK++YWPVPBfpSGsL11WTuPyZwXPqUil78+NwT5x9MQ702Zt0Ae7jitECehF rzhmbYmW6MLd956pLTfZNCQD2+uDJbOP0BHyTVKLdZU2evSkN58e9JwaLUx0iV+0z26v 61qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686318628; x=1688910628; h=content-transfer-encoding:to:references:message-id:in-reply-to :thread-topic:subject:from:date:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cneTQJDXoYoH8enlQOLGgzp+PRZO62YxWTdB5nD9dbI=; b=CycRLjiWnG2PqA9nFVpjO1RDmHKk6Zs+6dp4jVDJAdkgdLg51kLiU6ZriLty1R6vz2 5vD/7PZTjT7fBEZDgjSAt/A1uEbBv80S69deCej909sn4F0HuSnNybE/QPckqqw16Dua uwdhNvJJ+9ebcVz64ThSJDNf3jFuMswXvihA8X0kyAgOnsvlFNCjXrI0YHMeSIofTdRv GRYcDi255LIhUsRHVRcALXCxxh7VQ+mtyzKvyRoP5rkS9Oe+j+k1iXbVIiTscenuTwhm TTPsIfxFuSO7844wdIbu54PsJ5rSaaTHqyh36UGDPcM7L/pX31DoyTeCbadSecNJ+J4W IWfw== X-Gm-Message-State: AC+VfDwZra2/6GCC4AQl1SLHTO2/bZIBuedkLGwtRC6pUjr3/6QExBpY YGlZ05U/DOf+RjVLCQ3GJpo= X-Google-Smtp-Source: ACHHUZ6rtiNC1v2hXLJA1xxE+2V8EADATsTCQzk/mVS4BJCDB2uivHpIlrsKluXlHa4T37HkwqkIzg== X-Received: by 2002:a05:6a00:2396:b0:653:a56:10d8 with SMTP id f22-20020a056a00239600b006530a5610d8mr1170767pfc.33.1686318628217; Fri, 09 Jun 2023 06:50:28 -0700 (PDT) Received: from junghan-NDSL (sky3.kaist.ac.kr. [143.248.129.202]) by smtp.gmail.com with ESMTPSA id v3-20020aa78503000000b006414289ab69sm2738019pfn.52.2023.06.09.06.50.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2023 06:50:27 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 9 Jun 2023 22:49:39 +0900 From: Junghan Yoon Subject: RE: RE: About rte_flow asynchronous API Thread-Topic: About rte_flow asynchronous API In-Reply-To: Message-ID: <979D83AF-4B3F-4D0E-8FDB-A583150751E9@hxcore.ol> References: <2AFAAB86-DA31-4C33-BC6A-39B3781E75BD@hxcore.ol> , To: Bing Zhao , "users@dpdk.org" Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8" 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

Thank you Zhao.

 

I tri= ed it, but now mlx5 driver returned error.

mlx5_net: [mlx5dr_action_create_generic]: Cannot create HWS act= ion since HWS is not supported

It is what I saw in my original code before tryin= g on testpmd.

It seems to= be an issue from connectX-6 configuration.

=  

Is there anyone ever tried to use asynchronous API with connect= X-6?

Setting dv_flow_en= =3D2 and dv_esw_en=3D1 seems not enough.

I explored the mlx5 code, and found that rte_flow_configure= () queries HCA capability by mlx5dr_cmd_query_caps().

In my case, rte_flow_configure() returned erro= r since caps->wqe_based_update is set by 0.

 

Is there anyone know how to set this value to non-zero?

I already wrote the same ques= tion on nvidia forum.

 

Sincerely,=

Junghan Yoon

<= p class=3DMsoNormal> 

=EB=B3=B4=EB=82=B8 =EC=82=AC=EB=9E=8C: Bing Zhao<= br>=EB=B3=B4=EB=82=B8 =EB=82=A0=EC=A7=9C: 2023=EB=85=84 6= =EC=9B=94 9=EC=9D=BC =EA=B8=88=EC=9A=94=EC=9D=BC = =EC=98=A4=ED=9B=84 10:00
=EB=B0=9B=EB=8A=94= =EC=82=AC=EB=9E=8C: users@dpdk.org; cerotyki@gmail.com
=EC=A0=9C=EB=AA=A9: RE: About rte_flow asynchronous A= PI

 

Hi Junghan,

 

In test= pmd, you can easily do it by:

 

p= ort stop all

# or port stop 0

 

flow configure 0 =E2=80=A6=E2=80= =A6

# if there are other port(s)

# flow configure Y =E2=80=A6=E2=80=A6

=  

 

<= span lang=3DEN-US style=3D'font-size:10.0pt;font-family:Consolas'>port star= t all

# or port start 0

 = ;

With the source code= implementation, you can configure it before starting a device.

 =

BR. Bing=

 

 

From: J= unghan Yoon <cerotyki@gmail.com>
Sent: Friday, June 9, = 2023 10:57:13 AM
To: users@dpdk.org <users@dpdk.org>
= Subject: About rte_flow asynchronous API

 

Hi.

I=E2=80=99m trying to use testpmd to tes= t rte_flow with asynchronous API in DPDK 22.11.

 

I turned on dv_esw_en=3D1 by echoing switchdev to /sys/class/net/<= /span>=E2=80=A6., and set dv_flow_en to 2 to use connect= X-6 HWS (hardware steering).

sudo build/app/dpdk-test= pmd -a 0000:8a:00.0,dv_flow_en=3D2 -a 0000:8a:00.1,dv_flow_en=3D2 -- -i --r= xq=3D1 --txq=3D1

 <= /span>

In the prompt, I typed b= elow

flow configure 0 queues_number 1 queues_size 10 = counters_number 0 aging_counters_number 0 meters_number 0 flags 0

 

but it said =E2=80=9CDev= ice with port_id=3D0 already started.=E2=80=9D.

 

I know rte_flow_configure() call should be= in the middle of rte_eth_dev_configure() and rte_eth_dev_start().

So, I run testpmd by below to po= stpone device start,

sudo build/app/dpdk-testpmd -a 0= 000:8a:00.0,dv_flow_en=3D2 -a 0000:8a:00.1,dv_flow_en=3D2 -- -i --rxq=3D1 -= -txq=3D1 --disable-device-start

 

However,= now not only rte_eth_dev_start() but also rte_eth_dev_configure() does not= start, so it said =E2=80=9CDevice with port_id= =3D0 is not configured.=E2=80=9D.

 

= How can I run rte_flow_configure() between rte_eth_dev_c= onfigure() and rte_eth_dev_start() in testpmd?

Is there any parameter to postpone only rte_eth_dev_= start()?

 

Sincerely,

Junghan Yoon.

 

 

=