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 8AC27A0A0C for ; Thu, 13 May 2021 13:14:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83290410FF; Thu, 13 May 2021 13:14:52 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2070.outbound.protection.outlook.com [40.107.220.70]) by mails.dpdk.org (Postfix) with ESMTP id 5503F4003F; Thu, 13 May 2021 13:14:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oN2TAJk0xkDruuqF86xWKoHDqztBvoxh35WmGYsh6Bh6PbMkMCcfiX8NCqW38cRUCEJO3ovV/EYgKlQxs30bNZt40E8EnxUNkbnh7G8oFgSzsPR28XcA95Ox0VCJhrUunFod8tgCjZJNplQ4jUOMLZvxCRE7n2Bw5AwHyoo6upgGNIytAfCCvVAMj92+Qf0+FnyB8BFzBV/PvV+HV+cJDZUrcIm/TqRXQFfrazzMs8itjOV6u7Gf4bcBKMh8KEmRmQy3o+1YdW+bWLjsdk+MkfZpfv9KJdefMhUYjz5u6Uc/OeKd55su47IVGs+NUZCqE4APAZS7Fr+C0kUSqzrJ9g== 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=nAZgD3i/O5wnaZQDz6/nAWPx7W21DMhv5bscTH7mgiw=; b=iqxLr7dYemvahjp3eDNeSpO8xHQHakI1XvjMi8Iy9sWjeKgt3ukmfCHW3hpRN/MLZzmloMbStXvv6hKyyfrVxhq95fNlxsO9w/KZZ4DHMftc28QVSlxiOmFSoDQH+8giswU04mEs4ClU807prmLTn7QJdmq0q/AwXvZ/PJohhlEjbeWCj4mH2iNJa7LZXcy1Wg6+/Y+6V6lrnHoRLLMRU4sWmY3q7qMRtz87Dj5eJYSyoLG7JKw/DslBmfWAmWgLpH+IwpShYZlhHjeShucFqexoV6eHOPyAiOBsa5XSoFyG4wJHhVP+/UwnhqZC+ATQzDc4BibhlhNQ6+kEGhSnSg== 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=nAZgD3i/O5wnaZQDz6/nAWPx7W21DMhv5bscTH7mgiw=; b=nbZEJwmYmTMUoK7Wv+dfVS0k8RZ13sFzxPyroyDpJBSqvtZhatXBA7OQrvmSKBbaYdLuudqAOuc/zGdHrpzQ9W/MwqwHFPHus80CbDbuwlODA4KLTulkUG+P/Lqf3CzzTLgf0m/N3/aGbRA2UUv1rDQHjvBSJlf8kInUGEDqM38O6v/jlFV3FXfRRJg8bV8yCPZOlewu0U86GRelkkDh9tb50frSkf78NYpiu8M4upPbgoKHOh3Zc/zO6+N81j8GlsXkJHmfES5k8xpUC+jq5nJK7ypnr58ojf/X8k0863wXkRzxh9yYIgMjvYPTR43jlrUqtmoJ3AJgFhLryTqTvQ== Received: from CH0PR12MB5041.namprd12.prod.outlook.com (2603:10b6:610:e0::16) by CH0PR12MB5235.namprd12.prod.outlook.com (2603:10b6:610:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Thu, 13 May 2021 11:14:49 +0000 Received: from CH0PR12MB5041.namprd12.prod.outlook.com ([fe80::4051:6d8:dfa6:e554]) by CH0PR12MB5041.namprd12.prod.outlook.com ([fe80::4051:6d8:dfa6:e554%7]) with mapi id 15.20.4129.026; Thu, 13 May 2021 11:14:48 +0000 From: Bing Zhao To: NBU-Contact-Thomas Monjalon , Slava Ovsiienko 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: AQHXRz3qvGH9iFu9dEePiUvHjcJSBKrf7bIggAALWoCAAAUBAIAABD6AgAFBaYA= Date: Thu, 13 May 2021 11:14:48 +0000 Message-ID: References: <20210512143607.3982046-1-bingz@nvidia.com> <3137360.tEDzu0CzRi@thomas> <1775628.LvkAriOW2H@thomas> In-Reply-To: <1775628.LvkAriOW2H@thomas> Accept-Language: en-US, zh-CN 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: [154.18.175.69] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1edc14e9-d81f-49b2-5142-08d916005283 x-ms-traffictypediagnostic: CH0PR12MB5235: 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:3276; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eFM3k1MDUCk3WgeCOkCV5QkA8TPL54fbCn8IoUZknQCJWZ0mllRxCDwIY8f++52Szv/KdOv2p64RpOm/u9WjVQk881O6dkLDkb9QvCQfsuRCbNKKodyMvDEFcqKJl8UjNo/Ru/aEvlmtzae5JqqL61HTGhK5zWAGWZ4zyl5bN5WLK5RgkM55HPzTD08aEn5SJ+dOt8QIduX2CEtjZ8uRALeHHaD80TmIt6JTcctaW6PRcQkRxp87UyYUH2J9VcNm+jlFV4L901atPMxtE5i6tI6caxvZ1XqmTI8fu8UpP2eBWfnMuPAWnLbYHa1t1jrEuUJnacduAmJ/8z0l3vSs2FD8PlGmgyxqsVCiPMdKyad8qsH7Py4nKH2vONp8rrXdvIiFlAhs61vUasQZzGVqpmFyYIM5YnYqdWeb4prdAgGL4NJ42em+bf34o+WKeJCcPdcia223UHknHF1y65xufH5DfkNH4BzAYWp7uIU+N/cwEn+JPKJWRUE5SAXL4UebhL2a0aXedxkVmyeiVJRTrx3tNf6G33Z2afCC6XfqlvPwhDlQv9hs+pDLMq8Bu7RW5EBn8rslWYxmBUQjDqP0WEvdwUZwlcJtZ70An4/kvjY= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR12MB5041.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(376002)(396003)(136003)(346002)(186003)(2906002)(5660300002)(8676002)(26005)(478600001)(6636002)(55016002)(66476007)(66946007)(66556008)(66446008)(9686003)(7696005)(38100700002)(64756008)(76116006)(8936002)(4326008)(71200400001)(86362001)(83380400001)(6506007)(316002)(52536014)(110136005)(54906003)(53546011)(33656002)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?jOfv+tJ23MImkceXJumaJ/rk4v/NCc8ErZ2Wjh8NDG3L6dtCGYwLLk5vcNWg?= =?us-ascii?Q?fcW7gWEpOuGH1Jy5NGPP+DXKmPUs9yJwi+8SLyynYf3Nx7vUtNTR+b4VRSOZ?= =?us-ascii?Q?4ZfH6QqOifGKzmB+xCKCy7UqK4JgPVyI27YP19BYeVCjIGyOdrVDk/oAxF18?= =?us-ascii?Q?NH5PUiwOHzR42SwkRTxEepiu8vdc3YJefP8PziiZfO4wXvJXjPkBBNP0ELvM?= =?us-ascii?Q?JfhhiNTW6HgG/lZ37ujMkCWVjC1/N0pNli13E8AWtbzy6Gmck6fe7la5nKJV?= =?us-ascii?Q?keCWmyNz5QqpEBjqtddGIu3RV3lhhmTTDCLqF7N9Xs44nmyHv9hnmqF8AeFT?= =?us-ascii?Q?cMfmGD9dx/Pv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xBvsVaUBPoHas?= =?us-ascii?Q?JxMzdGczodGYhpEb8sFIVHB2MAnZW6FE/MttbDH7GbYgZeSjnDs6dE8EsyBd?= =?us-ascii?Q?LvgYbtz06zzu7/2+18u6BCoU?= 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: CH0PR12MB5041.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1edc14e9-d81f-49b2-5142-08d916005283 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2021 11:14:48.8828 (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: Ife0NNp9wgQdz0msHeVA2rLC3h2lkGHMyqJsdlHLwOv7QqLXvK9RHfHhKOCInxknSYfxxZMfgodqKuVKh59Vhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5235 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, > -----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 ; > stable@dpdk.org > Subject: Re: [PATCH] net/mlx5: fix loopback for DV queue >=20 > External email: Use caution opening links or attachments >=20 >=20 > 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, for > > E-Switch configurations we still use Verbs. >=20 > OK this is what I thought, but it is not clear in the commit message. > We could think it is the user switching a queue :) Please reword by > comparing Verbs and DevX without saying "switch". >=20 Thanks you all for your comments. Patch v2 was sent. >=20 > > From: 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. > > > > > > > > > > > > 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 BR. Bing