Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-13 Thread Bing Zhao
Hi, > -Original Message- > From: Thomas Monjalon > Sent: Thursday, May 13, 2021 12:04 AM > To: Bing Zhao ; Slava Ovsiienko > > Cc: Matan Azrad ; dev@dpdk.org; Ori Kam > ; Raslan Darawsheh ; > sta...@dpdk.org > Subject: Re: [PATCH] net/mlx5: fix loopback for DV queue > > External email:

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Thomas Monjalon
12/05/2021 17:48, Slava Ovsiienko: > Hi, Thomas > > > How do we switch? > > Historically mlx5 created Queues and other HW objects with Verbs. > Now we are migrating ("switched") to DevX - queues are being created with > DevX calls. > If there is no E-Switch - the new DevX approach is engaged, >

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Slava Ovsiienko
Hi, Thomas > How do we switch? Historically mlx5 created Queues and other HW objects with Verbs. Now we are migrating ("switched") to DevX - queues are being created with DevX calls. If there is no E-Switch - the new DevX approach is engaged, for E-Switch configurations we still use Verbs. With

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Thomas Monjalon
12/05/2021 16:51, Bing Zhao: > From: Thomas Monjalon > > 12/05/2021 16:36, Bing Zhao: > > > When switching to the Devx interface, the kernel driver behavior > > may > > > > What do you mean by "switching"? > > I mean when changing the Rxq from Verbs API to Devx API. How do we switch? > > > be

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Bing Zhao
Hi Thomas, > -Original Message- > From: Thomas Monjalon > Sent: Wednesday, May 12, 2021 10:49 PM > To: Bing Zhao > Cc: Slava Ovsiienko ; Matan Azrad > ; dev@dpdk.org; Ori Kam ; Raslan > Darawsheh ; sta...@dpdk.org > Subject: Re: [PATCH] net/mlx5: fix loopback for DV queue > > External e

Re: [dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Thomas Monjalon
12/05/2021 16:36, Bing Zhao: > When switching to the Devx interface, the kernel driver behavior may What do you mean by "switching"? > be different from using Verbs. The Tx loopback cannot work properly > even if the Tx and Rx queues are configured with loopback attribute. > To support self loopb

[dpdk-dev] [PATCH] net/mlx5: fix loopback for DV queue

2021-05-12 Thread Bing Zhao
When switching to the Devx interface, the kernel driver behavior may be different from using Verbs. The Tx loopback cannot work properly even if the Tx and Rx queues are configured with loopback attribute. To support self loopback for Tx, a Verbs dummy queue pair needs to be created to trigger the