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 C2CAB42C6F for ; Fri, 9 Jun 2023 16:06:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 812E142DBA; Fri, 9 Jun 2023 16:06:22 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 64A1740EDB for ; Fri, 9 Jun 2023 16:06:21 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1b02fcde49aso6331545ad.0 for ; Fri, 09 Jun 2023 07:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686319580; x=1688911580; 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=FT2Obe3YB0TF8T7vhhy+LHAqum9O1BtlE2NYtqJYB0g=; b=K9EXd3VSycQaIqQI2CtssZftZDEdLl5h2ZdUpm1s5Ys3bBWZ8MWvDA3UWbGLOCvMrR F3zaTC0O4W4Rurxr2CZCNTUNgMZentrjLSOyc0+zRkQxRxvOcEPbpFko5Wj2a7ExbsHy nU7EmJWRcC+Zp8CijRkOKxgd6rga1gUVPFAm4U1wcCsD2lZHDGdJJaImrwDzVUNIYrTn 1uLRdslrTXRCiXRRFp3g4y6+12k16cLi6x2DcV6iebRsDY+DF8vEDm6k4+kRXHxJ3HuI hhHqAciy0dUhQSlYk88Q7s13oJVyh2tNtdkOfPe8hyXZtD39jAcX0w1oCBUvZO05g5wN yd/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686319580; x=1688911580; 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=FT2Obe3YB0TF8T7vhhy+LHAqum9O1BtlE2NYtqJYB0g=; b=SfzbQk8KIS9/DCjOKPpGR+C0Pk6zGYJ1WoR0Men0zp+sWf09cEf5zc6+ipW5L5qMM8 dg2oaBeVlEptGPN2PB8WODlalWbqVMX1OgGaPJjOL+vS+kk92VTOgxZ9er1cTesZlHhO vBUtRZ/9nLEcSCoz1eVfBBpfUj+SkBBUkvWQAjTnjWEJM7xmSMbFiTqyCTD79tlBqRnR HgmC5vN1sVlX/5mrV6dOx176tT3MHAvDjZ6OLrzQd8pC1bUrJdV24iMOyhXTE6BGA/qD 3CdweHbrte5ylWmabSCMuliqggPiRHjcUo24g/fDzYw7VGCAcwkMYLs4FSqiHSx980/I 495A== X-Gm-Message-State: AC+VfDxHXaldBDczV4fZtZ4Tl5iDf/YXgjr/aka5Z4WkTGuJZ4Q6Oq9O 7T+5nQrX0fguYo8ROw/YG0Fww3ZS7arnGQ== X-Google-Smtp-Source: ACHHUZ615vsZqag0Nrr9aCdE+g6UYmjDJN5+frdvJ9EIQThmxuEPIp1C68lMvWLSJHS6DmdpHnS0Sw== X-Received: by 2002:a17:902:6b81:b0:1b1:86ad:3347 with SMTP id p1-20020a1709026b8100b001b186ad3347mr897570plk.3.1686319580287; Fri, 09 Jun 2023 07:06:20 -0700 (PDT) Received: from junghan-NDSL (sky3.kaist.ac.kr. [143.248.129.202]) by smtp.gmail.com with ESMTPSA id n18-20020a170902d2d200b001aad4be4503sm3331917plc.2.2023.06.09.07.06.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2023 07:06:19 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 9 Jun 2023 23:05:33 +0900 From: Junghan Yoon Subject: RE: RE: About rte_flow asynchronous API Thread-Topic: RE: RE: About rte_flow asynchronous API In-Reply-To: Message-ID: <31123A7D-207A-4E65-A3BC-708C80591660@hxcore.ol> References: <2AFAAB86-DA31-4C33-BC6A-39B3781E75BD@hxcore.ol> , <979D83AF-4B3F-4D0E-8FDB-A583150751E9@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 for your quick response.

Firmware version is 22.30.1004, and OFED version is OF= ED-5.8-1.1.2.

 =

Sincerely,

Junghan Yoon

=EB=B3=B4=EB=82=B8 =EC=82=AC=EB=9E=8C: Bing Zhao
=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:56
=EB=B0=9B=EB=8A=94 =EC=82=AC=EB=9E=8C: Junghan Yoon; users@dpdk.org
=EC=A0=9C= =EB=AA=A9: RE: RE: About r= te_flow asynchronous API

 

What=E2=80=99s the FW version are you using?

If you are using OFED driver, it is suggested that you try the OFED = >=3D5.8 with the FW inside.<= /p>

 

BR. Bing

 

From: Junghan Yoon <cerotyki@gmail= .com>
Sent: Friday, June 9, 2023 9:50 PM
To: Bing Z= hao <bingz@nvidia.com>; users@dpdk.org
Subject: RE: RE: Abo= ut rte_flow asynchronous API

 

External email: Use caution opening links or attachments

 

Th= ank you Zhao.

=  

I tried= it, but now mlx5 driver returned error.

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

=

It is what I saw in my original cod= e before trying on testpmd.

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

 

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

Setting dv_flow_en=3D2 and dv_esw_en=3D1 seems n= ot enough.

I e= xplored the mlx5 code, and found that rte_flow_configure() queries HCA capa= bility by mlx5dr_cmd_query_caps().

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

 

<= span lang=3DEN-US>Is there anyone know how to set this value to non-zero?

I already wrote= the same question on nvidia forum.

 

Sincerely,

Junghan Yoon

 

=EB= =B3=B4=EB=82=B8 =EC=82=AC=EB=9E=8C: Bing Zhao
= =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 API

 

Hi Junghan,

 =

In testpmd, you can easily do i= t by:

 

port 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

 

 

port start all

# or port start 0

 =

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

<= span lang=3DEN-US style=3D'font-size:11.0pt;font-family:"Calibri",sans-seri= f'> 

BR. Bing<= /p>

 =

 

From:= Junghan 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 test rte_flow with a= synchronous API in DPDK 22.11.

 

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

sudo build/app/dpdk-testpmd -a 0000:8a:00= .0,dv_flow_en=3D2 -a 0000:8a:00.1,dv_flow_en=3D2 -- -i --rxq=3D1 --txq=3D1<= /span>

 

In the prompt, I typed below

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=9CDevice with port_id= =3D0 already started.=E2=80=9D.

 

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

So, I run testpmd by below to postpone device st= art,

sudo build/app/dpdk-testpmd -a 0000:8a:00.0,dv_f= low_en=3D2 -a 0000:8a:00.1,dv_flow_en=3D2 -- -i --rxq=3D1 --txq=3D1 --disab= le-device-start

 

However, now not only rte= _eth_dev_start() but also rte_eth_dev_configure() does not start, so it sai= d =E2=80=9CDevice with port_id=3D0 is not configu= red.=E2=80=9D.

 

= How can I run rte_flow_configure() between rte_eth_dev_configure() and rte_= eth_dev_start() in testpmd?

Is there any parameter to postpone only rte_eth_dev_start()?

=

 

Sincerely,

Junghan Yoon.

=  

 

 

=