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 D7171A0A02; Tue, 18 May 2021 10:33:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C074C4068E; Tue, 18 May 2021 10:33:49 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2053.outbound.protection.outlook.com [40.107.100.53]) by mails.dpdk.org (Postfix) with ESMTP id 2E98740041; Tue, 18 May 2021 10:33:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mN0NcFKrEz0uOj4YHi1UpatHyEEjzIp9wa+fY18gVF4YHUEmXLmBMAubkhZsTTiIZjjRN3A9W2EK45qkBgySr5R5urH9cidpzBDTzUJ6MGCeXB2O8G/lVpY1LJvuyeu8BRSYtpoUSJEBxwMjiGks9qOyClb5e8TCN+qSYmnaRmLJ5S7CU9Sq4AIzxoFRHSl6uPy783sBhM7iMxwoZkZ1DXLXUuK5QQxHQ5yxr70EfxHOhmJRPy92CP9wx2bJuwrgwgHJxDX3+qNZmx8qOT5DM/xRYUGnyIKNqZpPCE9Qo4zE4PzV7UequgrpPbegnaqxPkKga3MilxMrKeiIyUSJIw== 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=NzW8p57WMxjkeSg8oBiOZED+FbGw5ryCALPqGd8yYqw=; b=b3eqdSiwQkeAbvV3aqeZE+scD41q8XK91j1X8IyFIJlIeutfNGAzp/g87p2T2VHnUH6KGc94sz1UvCS6fkBYZuWnsSMy/x3BV0BSRiXKL+Egi/3zqdj9WpIBIpSzYYkKR2ZDvE2c1YdI6e5sS00RxdQxYLI0jlkI3aTfLW1VQv5DjMnOhaNP5j3Lwhno3aj0j4xSfvu2HBtvLm7i9ApkhQlIlYqTkxaoN+vpA0/j9lLn0P4rX78mp/tLNAp1r1mWgB43uDxN4uSnqcCvucASRLsqHfLTCO43z3CwBRjbKmKs8dK9WoUuztq9d5JLTX7UOUcMtuqsGfSBobawN+zq4w== 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=NzW8p57WMxjkeSg8oBiOZED+FbGw5ryCALPqGd8yYqw=; b=aJPk00y0+woUTgA5M0E+HqvgPMiqVgcPzfU3rL+ivtKXdUQX8RZhL0OT7lfY8E9r3GAGHAKt1lBvUUjhn3yPF3aSG0UlrAHt8RsLt05TxY5PsHJtG1maSb/xvyiPQ1LVujfaaouTNo+I80699JjVJQdp9CX68B3gn+PAiKMq9zLrJrU8J8rJAW2plrpW96HlmKl8Ol4vEva7CdmYP52qo6k4tojsgp5Wr3GhPUQ9NnOXkTgWQ0aqh5azJC7wIHDINPJikJ/X8CAHnOPb8UDwODxruuBY5lotvqAp08VztbFDcA+pvbo3SVwqJc4XY14MxeDLZ+ToOW5q8Qh6bbB7EQ== Received: from CH0PR12MB5041.namprd12.prod.outlook.com (2603:10b6:610:e0::16) by CH0PR12MB5265.namprd12.prod.outlook.com (2603:10b6:610:d0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Tue, 18 May 2021 08:33:46 +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.032; Tue, 18 May 2021 08:33:46 +0000 From: Bing Zhao To: NBU-Contact-Thomas Monjalon CC: Slava Ovsiienko , Matan Azrad , "dev@dpdk.org" , Ori Kam , Raslan Darawsheh , "stable@dpdk.org" , Tal Shnaiderman Thread-Topic: [dpdk-dev] [PATCH v3] net/mlx5: fix loopback for DV queue Thread-Index: AQHXSy/9zaF8T3QLekep6iPHWyuFVKro6mCAgAAALdA= Date: Tue, 18 May 2021 08:33:46 +0000 Message-ID: References: <20210512143607.3982046-1-bingz@nvidia.com> <20210517151841.57847-1-bingz@nvidia.com> <3881058.ArAt7a84xB@thomas> In-Reply-To: <3881058.ArAt7a84xB@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: [124.160.124.76] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1b7cb0bd-bd5c-44c0-83cd-08d919d7a730 x-ms-traffictypediagnostic: CH0PR12MB5265: 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: Xy5F/dR2tINmRGS99c+VTEjD4HA1dRzaTBz8xN0FquDGDr+6k+kZ/YrowaEq+XAnJGdLFUb9FeRGg5ONhgfFaTQd/LO7d/LvVaD73Kbhd/NTI8Amfzq1AoWk+DQJTa97USevURI6pfMYlQd5iroSr3zzDIsTc1oPEmPzZEa0YvaXYJX2s0NNOzmekvvVc5bvg6eibs1ydjwxWnQi7aJiqHNoskbvLfETnT0/PX622SFisKBW6snTYuyeimEj0pIxAahRFOPA93AgHb9XANq/6+uwWwOmBzk3qMQOYGZXVgcbcnmIEgHj5jjJIEXNA0lhXRXWUH/T/ebNxPLGctO9nH0Leavje70YFVJKMrt4zjtzjJgaumPem1zsl2XfhmFevCLDYxcJj964VqAN38H4ZuUIYtNHMW9RFfrowW/QF58T7qgXcbFvMvoj0K8vvMjr1xqGhhEHW5bkA6UGaGu/e9wPlQRztCNOHcPjB4SnD7jfCGB7V23/Y+Z/4sZqkngx8vz0FMdCWVaSFQt0DHtFPoOIfzSht/iFSmxwBzYLwEoe92/VXxElH+W2QXvopii5UZ/8aTJZeG6y77PQ5YK29TpOL5ZMcG4BiVUE0le9sZI= 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)(346002)(136003)(396003)(6506007)(53546011)(76116006)(86362001)(66946007)(66476007)(54906003)(55016002)(9686003)(2906002)(4326008)(26005)(316002)(33656002)(7696005)(107886003)(186003)(71200400001)(6916009)(478600001)(8676002)(66446008)(52536014)(64756008)(122000001)(66556008)(5660300002)(8936002)(83380400001)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ahi3tUboUq7gHeuT5dldaKPTS3PdxdgaJtg67srCR9VkTX8t2S2RspbYTPcq?= =?us-ascii?Q?6/ADjSZT68pUjl3l89A85znrNBkmQja20+lid3oJeZ/AGbwYiFl76STpU8Rr?= =?us-ascii?Q?xQCsI3vjvpMNuee1wlva4wVXvm/KHOLYeaPNNjb5KM5kVGqRpn59P5Rt7yel?= =?us-ascii?Q?nzwEZBuVFba/Czit/5CktTPfU/ABWGzFEdNv9BO5LopIrAfY4Qna15BISvlg?= =?us-ascii?Q?bRuL15Wrqyr5I2jzfTht9BndH4QWW5UAVPKLL53fMWWZi6yBcZ5YOKYSkyMI?= =?us-ascii?Q?fWOV7xfoVSnwwSdqvNFCfFBWFGeXUKr36GFKNMNCTQ9JWlk4/B2RC4Ea4ZtR?= =?us-ascii?Q?9JUlLG+xdpMIygMzPh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F?= =?us-ascii?Q?oYMjk6NJlzX4h7KF+FYvao4uDOmyH9OROeAy+tLPk1eeROY1OJPwQTgy28En?= =?us-ascii?Q?U5D98yyeckJK+bEgJPdS2APa?= 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: 1b7cb0bd-bd5c-44c0-83cd-08d919d7a730 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2021 08:33:46.0864 (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: NLg0LhNSf7O8tbX9lHmCWckYca2X5cgE9yB4UaNwZzpcLrk/yCqJ90PYAzTcSUjJCZ8JwrSnxVspL9NED8MkFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5265 Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: fix loopback for DV queue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks a lot, Thomas. > -----Original Message----- > From: Thomas Monjalon > Sent: Tuesday, May 18, 2021 4:33 PM > To: Bing Zhao > Cc: Slava Ovsiienko ; Matan Azrad > ; dev@dpdk.org; Ori Kam ; Raslan > Darawsheh ; stable@dpdk.org; Tal Shnaiderman > > Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: fix loopback for DV > queue >=20 > External email: Use caution opening links or attachments >=20 >=20 > 17/05/2021 17:18, Bing Zhao: > > In the past, all the queues and other hardware objects were > created > > through Verbs interface. Currently, most of the objects creation > are > > migrated to Devx interface by default, including queues. Only when > the > > DV is disabled by device arg or eswitch is enabled, all or some of > the > > objects are created through Verbs interface. > > > > When using Devx interface to create queues, the kernel driver > behavior > > is different from the case using Verbs. The Tx loopback cannot > work > > properly even if the Tx and Rx queues are configured with loopback > > attribute. To fix the support self loopback for Tx, a Verbs dummy > > queue pair needs to be created to trigger the kernel to enable the > > global loopback capability. > > > > 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. > > > > This requirement comes from bugzilla 645, more details can be > found in > > the bugzilla link. > > > > Bugzilla ID: 645 > > > > Fixes: 6deb19e1b2d2 ("net/mlx5: separate Rx queue object > creations") > > Cc: stable@dpdk.org > > > > Signed-off-by: Bing Zhao > > Acked-by: Viacheslav Ovsiienko >=20 > Applied to next-net-mlx, thanks. >=20 >=20