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 08F00A0C42 for ; Wed, 12 May 2021 17:48:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA39C410E3; Wed, 12 May 2021 17:48:39 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2053.outbound.protection.outlook.com [40.107.212.53]) by mails.dpdk.org (Postfix) with ESMTP id B2D4A4003E; Wed, 12 May 2021 17:48:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NoyFtibJoJBaW6za6PXXMtD8Rn/et+rescRU3olqUXkuIW2vhreVsnD2I4lSiuV7GEBipRJEpNXPpvJVP/c9W4gkT1YWZFViHSebPowly24HeSZapLNQsyE60QUygRBpO9zpMlRt/sfLeo2WKOnexVLsp5OSdF5OrLNhxWMJr51z0gJ95YH2Dm8FTTfkrcKA2puZLTCrm6gXdRRcOf7HjNFOjGoSRBFOlHeV9Jyrwcc8g1vjW1vrlYFp1WkBHs1SBeSNltWKETKUqFAaFt9t1AcJsMP5LA3y68CAP5XLgSGyE6D2nH6UdLBi93DXYvXP+P0TaS1EIVBzK57u5G+uvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WeCqapfMVWT718hKZrCAh8BiqRuK7uAGrNzI7E19gWg=; b=GSUUgCTDtL7vH1jTAdIrmYtvmrwC276yF6g78AifVTFVPEjWWAf/Td+NyvzDHKs7m8XoLyMzhIlrPtoi+suC0mQs7CarBDiSeR9LUaz2aZsISgchiznrCzkpLtCj1BWJcnq/qF3+FK595+t0Z914zcIJcHq07pugAy3i5hukTZoc5xpQFNnG2ZCNLriQt4vbPfHVot6ySPrtF4ImTj1PsYN27sFzKqcCDJOGaFJHqbfqviBboKm2f6lWr8llX/3M3AbKYuS0KhYJSTOk/qrMx2cGoqhv1r1nEn4NKyewfiSLsZA2KD3fQTcmAX0rYRsTW9zwQJ4bYrVMRsRNKZo5xQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WeCqapfMVWT718hKZrCAh8BiqRuK7uAGrNzI7E19gWg=; b=aCnNMdrxfoO+rmbIBA0Q9ab2UjauMmfDO6q5snrnD/chORJ/mmUun7pHYDjEWtduEDVIBrdsc/2COVWZgURHT793eEH3wtKkOxJuAz2KtOTQ5GBAmsrlK6BQ+CaZdq3P+4eA5PrEGXVMEFg93fCpiQpZBf6FgZ4Yvn3m9u+c7hRy8gI9tB+WMcujIci+UKEv2nwosJ9WK+XS7LMIJcRCOdZ3pxU9plaRRDTpnHeDUBBY3CmDV5XlXOgdYXdZmGWSQIVeRiRG8yT7SX7sprQvU8khmdMA3Ie1BgWQhsdEjVUfgvTK3Hm5Tim2Y/Iuk5VDlwlzzTyT+GnFTzDMxIz2Gg== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB4481.namprd12.prod.outlook.com (2603:10b6:5:2af::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24; Wed, 12 May 2021 15:48:36 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::c595:e3bc:686c:16a4]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::c595:e3bc:686c:16a4%5]) with mapi id 15.20.4108.031; Wed, 12 May 2021 15:48:36 +0000 From: Slava Ovsiienko To: NBU-Contact-Thomas Monjalon , Bing Zhao CC: Matan Azrad , "dev@dpdk.org" , Ori Kam , Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix loopback for DV queue Thread-Index: AQHXRzw0hk+uc+ag00Gtgk32swis2Krf7VOAgAAArQCAAAsPgIAABCTw Date: Wed, 12 May 2021 15:48:36 +0000 Message-ID: References: <20210512143607.3982046-1-bingz@nvidia.com> <8026201.zdneIxqaXz@thomas> <3137360.tEDzu0CzRi@thomas> In-Reply-To: <3137360.tEDzu0CzRi@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.163.75.124] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03b81d8d-fd9f-4041-140e-08d9155d67dc x-ms-traffictypediagnostic: DM6PR12MB4481: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3TMHSgHyhPh/SBcDXGldVcdV163e03YndcnkJ6algrHOF2rW91JXui/CzQESu7Xn7r9x0XiNORfSF8oDtnxGshm4bv5aHWa4lI8lVpaW2TV3lwF7pxwvqjxAp1dIo3gBGeV88KkwVEMolzskCkymOEOqBp8gVwIDqq6ZRWKd6tvjsAB8HoS6gRmbmB0ljw5l2tT0Yl5Dpw6+JfkcEto3X++irAqaIh7bMY1vZ8lwyN0LdVgADfrrKGk7THo0J1PuIi8o3z2j8j1VcjB0U8BSW3d0T6Jw8wisC5QyPQD13WVx3BnKvONRgCZN8mmrh4BCBmBaQZ+mQ835QQSMwzqWMS0Q3raa7Mbic5V5vyUB7V0MG+z4Yrs5juhGy1Xfs31vM8ozLa2l38tfc8rabY5LEkH6x2zDnIk7oRdjwvFgZrIMBfXocA46tapvj/Fi/oi+tA9wnhHNrnwhy7ZzEpDBIu3oOHjF06U0NzKHARGdZ+qCQR/FpwBBvPtM/INDUQlQcF0vxZl/48IkGwA+XT5C9KLFpXrJI77URswon46Gtwq/+mdLblTXdJnpeetuUwFS6Suop/doRkR8NrH+PwP6uekxFvHx3WsekAhBVb/Ol6Q= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(39860400002)(396003)(366004)(376002)(38100700002)(4326008)(122000001)(66476007)(64756008)(6636002)(26005)(186003)(76116006)(9686003)(110136005)(2906002)(54906003)(8676002)(83380400001)(55016002)(316002)(478600001)(71200400001)(52536014)(66946007)(8936002)(55236004)(6506007)(7696005)(66446008)(53546011)(33656002)(86362001)(66556008)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Ua/i2OM7RXyBGl0kAJcVR71p862ZqOt1Jj5f1cVfEaaqF6nK3oWXSe4lErSJ?= =?us-ascii?Q?NJ3O1Iltp3G7SucMMSshBPu3QwiGGody+/Mv4R/H6PwWQ5gNfgECg7T7hdUs?= =?us-ascii?Q?kdrCDnqJZWDblmJAlVXN2bjE4ZRkSIe2wi4uf3ahUpC25gMJZrH5bhZacBg/?= =?us-ascii?Q?f7o3MTQ5TFkl3ooBI0zvxecb3zRBmuDQieV6yqzaBHHWgSVNaUUBeOi8+Bm4?= =?us-ascii?Q?g1RhT/WTXoje/86FBbtAPvZHq/Bl+ezDEHy1fKnbfQ+4qwxW4Ukwh+c4XJWp?= =?us-ascii?Q?oVyUngpIg2Jn6ZdiHTWaYu4m56HR2UzXjdl4Pb/TGEDYsjFv/L5RorUdsvrh?= =?us-ascii?Q?22G79qUAAU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3+UYho9?= =?us-ascii?Q?96iN/7Vz879XN4YJt9ndJx1nLuf7KhPBbyBefx5MyxOFB3twpJDh0JYx2rQt?= =?us-ascii?Q?M4lLdult/rQGbhQ+ZZjMRa1e?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03b81d8d-fd9f-4041-140e-08d9155d67dc X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 15:48:36.6415 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: H0BBrASLawWZrpZx9+QunsfUBdkQQjbL1ormS99PlzJO2DE8lCMlZ737XNmkDH4b7ztJfP0uSfDLaImBJ9qEpQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4481 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix loopback for DV queue X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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 D= evX calls. If there is no E-Switch - the new DevX approach is engaged, for E-Switch configurations we still use Verbs. With best regards, Slava > -----Original Message----- > From: Thomas Monjalon > Sent: Wednesday, May 12, 2021 18:31 > To: Bing Zhao > Cc: Slava Ovsiienko ; Matan Azrad > ; dev@dpdk.org; Ori Kam ; Raslan > Darawsheh ; stable@dpdk.org > Subject: Re: [PATCH] net/mlx5: fix loopback for DV queue >=20 > 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. >=20 >=20 > > > > 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 kernel to enable the loopback. > > > > > > > > This is only required when TIR is created for Rx and loopback is > > > > needed. Only CQ and QP are needed for this case, no WQ(RQ) needs > > > to be > > > > created. >=20 >=20