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 E6C5AA0A0E; Wed, 12 May 2021 16:51:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D02C0410DF; Wed, 12 May 2021 16:51:09 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2084.outbound.protection.outlook.com [40.107.92.84]) by mails.dpdk.org (Postfix) with ESMTP id 712534003E; Wed, 12 May 2021 16:51:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I4eF72Wu8oEtOsWGLbBWZxBRRPOQtUItlkSf8fDnFnWc1MZ4Df66gi3Jdi/zChmp6Ptmv0Zl8hO9AYwtGGPDNdKoBV1uLyrnsJiJJRk+kCskwo3HpkSJbXkvK+a7mv+YKUR0h6CZo8CHIXYtYCcZsAf9bC+MMHeRVjDAaaI4sDwf0k+KsHpBJDYVReDQp97q19/qSqFPx00dIwNan4VLBe7Czjetn4R7xwsyKJJCdMChfSvGmCmO84MLB4S5FbWpINKJIXq3WJU2EScKrn0Gv0eXAqXG8Lj/Y/YlAzHitswkxwP2BTv8RHJriHHOQuKt46dISEHk1JXaLeQP2kNVmQ== 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=BYMVUa6m7Ci+3twaKIgsUw5AImprEj/qbRslgVYY+6w=; b=NBlI0MxMOEh4aX96Nj5ZcgYKXBLm47e5bjo0nT79GgXLDDyyHZS+YZGtlJNGGtV4DQc9aNSAu5hMXegrM8+lebTz0aVJC7krEPjSmo9PLO+Hr7ohZ76975PasA1xLJxfB4XeS61vrArcKXCE9SBODEjWWDItG2G3fGHiGb03BSLN1kmkydF/Enl4voGXwzdUf01Z/8x6WlmFZc7sn+0N6fkVmk2U0iZMEkSrgd4O9OEZeJE6rdTq6TieAfespZvsb3rTK9R8LQXGnViPNhsk2yFTjxFKh5xljCuvAccG41SXzzca9VEo4q7aXJTokncXtkzcE2phJxbUwYZhcyJwFQ== 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=BYMVUa6m7Ci+3twaKIgsUw5AImprEj/qbRslgVYY+6w=; b=p4HDWOBgCSmrJchMdrt7sF0RV7IX0lEb/V8N2zk3dndR1pjg41igaSM40JEZFz3zifPyby4WaD3jEIesZpgrQNjViMKcNSp3efDCCUdQJqj+V3i/pTKbQlUFapCwb51EeHT7535UXGhXwNdLTwlwjsYAf1fYg4OebMI854QObezEUOsxRF2WGfrclUAqqGTtbILpuPHmpS512JgFRNjVXYbJ4y+Rexz4bJy31M9wlF2if5YkPof9s6bDInEX/vqpSLl5cgYqyI7WwQ3tolTNKRE1WiA2c8QFunry5Iml56cCXNEDG6hrs8ktQTxrdFHOBYx2qQLQc/OLPFrS6fTIow== Received: from CH0PR12MB5041.namprd12.prod.outlook.com (2603:10b6:610:e0::16) by CH0PR12MB5369.namprd12.prod.outlook.com (2603:10b6:610:d4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Wed, 12 May 2021 14:51:06 +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; Wed, 12 May 2021 14:51:06 +0000 From: Bing Zhao To: NBU-Contact-Thomas Monjalon CC: Slava Ovsiienko , Matan Azrad , "dev@dpdk.org" , Ori Kam , Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix loopback for DV queue Thread-Index: AQHXRz3qvGH9iFu9dEePiUvHjcJSBKrf7bIg Date: Wed, 12 May 2021 14:51:06 +0000 Message-ID: References: <20210512143607.3982046-1-bingz@nvidia.com> <8026201.zdneIxqaXz@thomas> In-Reply-To: <8026201.zdneIxqaXz@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: 36002467-7eef-4073-4bfc-08d915555f43 x-ms-traffictypediagnostic: CH0PR12MB5369: 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:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RGw7FZSPn+2MoKUxiB/QN4jiI7zyURh7kZPCev/4+CFJ52cPEA61MZQZWR2K81O45fvpYCghoowu+qkIhY09LMmyEM9ET0pJ5jUxs2ICKlTYmUTEH1oV6Zt78ABOXJqdfDJ3oAeg4P2lGBWKFiVZmZSvZIee9qe/EeaQEwDnr7zwHFtwv+ORuvQbrWQA4rchx+re8G3OCt6xoQHW4n+40oNZ/F8Q6xOjGtQgKU5Z3jIMAk/zCW/DS0ooBCplCh5+FY1Pco/e5U8Y+2EA/nocgdvA8avZcaYuJafjD7r4tLyC8rlm8xt5JNSFQnIJk6R4sAp6qW+ABRNUzxFPULR9whFzhaZeM247CSF7ZdicTtoqWa6lKQvLH84+d3WAKFwYbTjqsASxGQ/+XHl+Svc8+uekT8xXIDNZCyz94DeZYzNyGmgyeJc5wCVVuLhG61RiFbgdW3kMnyV1QBktGaARps+sRSLuD/bBlY8U1fMQTyRlw0w5ih9meQVsx2Q2VJrx2Xe38YgtSH8qcLcwZ9PCl8OnLyEsQ3ezU7eVeBBDg4kDRBM5zG89U0SBhD+xs0FeeSBIXl50s+pD340txzYJyjkl9z7W8hPnhbuQO8v9tJaeDKBtcp8lQlxMXNEM15Lnn88DIe9DcyOeRr55vP7rs97glN535YyIxkZWpR9IQs6N1IXJyX4e4w3QsqxsAJd7 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)(136003)(346002)(396003)(366004)(376002)(39860400002)(55016002)(9686003)(33656002)(4326008)(5660300002)(38100700002)(83380400001)(316002)(2906002)(478600001)(86362001)(186003)(54906003)(53546011)(6506007)(6916009)(52536014)(71200400001)(966005)(26005)(64756008)(66556008)(7696005)(66476007)(66946007)(122000001)(76116006)(8936002)(66446008)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?rKNMpSu3J1Nb+4uSvuV/OPZ5VSy1JC/mDxBb6expnH0P8ceIoO3B/1CMYWkc?= =?us-ascii?Q?VwjrLedCAWgzcWJIyKQRroXd0gLrIrFJVQqanKJWi5egf7LJqCb+XXVZFKJ2?= =?us-ascii?Q?mcqw0e0fkvJ1NJ6x7wm0N7jLDJeK0jGR4DL7fV3yDY6QCwIuK4jNipQpDAGk?= =?us-ascii?Q?VcnKjXBY+s7OQejAjOQS+2PZPU2lhpR9UID7PTZu5N4kyUhXqfunfqQL538d?= =?us-ascii?Q?fkyy59+msx5I3GeNHylU8m57t/l1eJVi2TFPyQePuOcubUCw5MevIAxIihRU?= =?us-ascii?Q?sp9uHd8uI0GIEykcW6RXRNga/XtxBMJ3mPjptW7h54Bbmm2WDpmyepz+jXNc?= =?us-ascii?Q?a9h+ebXdWscdgq+GhS2b9YmzSUXrGCmzc94NHsC11iy/4p/zGH00m7/nHzmU?= =?us-ascii?Q?LwWVQLtnc17s4D/mhck1C8iisE11RXzqAvO4KW0jv8Sdp7+kX12bOmuOXgz8?= =?us-ascii?Q?NmDMUotH3HGK8lQVltk3YU7fwHsEDaHn34ZfAzfPqwgd1rs7lJ/8Gf41nVl3?= =?us-ascii?Q?dUt4dngzgJbmzAkDsHjcK56ULLwBATshPp/1XIxXb83mzFzfDeXbvqdi2y12?= =?us-ascii?Q?vq4wpqKZpetYDQhfUasc/VZI94SKDg/WVvmrQvXkhWo+TM41d3ubxsDbErjI?= =?us-ascii?Q?YlzBVOmiihENo48hOtZB7aQhEsxZ1f698Dz1YOygqsMktj7Yi4Yaf1QjtFSk?= =?us-ascii?Q?20KKkX8g7ZqvZnql+ti3K9wQkohyeRAlcHH2SjIFww4EKyNgk+38HhgwvaU5?= =?us-ascii?Q?6U/UcPA3VF7laC31dDF+LpjzY0wLtmI+dDjIwcvP67jGyIEytuzHPJCjIPpO?= =?us-ascii?Q?9wAGKjfCOKjuiPAemaBz8aW3dtWndAccSmUi+EykB4t0FmlGFq+pfNfUJRXd?= =?us-ascii?Q?UnvRNXaNL/pQ+EXslfWOOKSUuwG/yxtk1l7TSNhp+WUphEeYLl4dYAg3agGy?= =?us-ascii?Q?LY0NRXaTuidUetiKeLo8rJUMdJxJCHgxjcccxHkD2SG5l/aLgK9OM/HcwzqN?= =?us-ascii?Q?6jCe4f2DRlKIN7NmgrGXkjs2o1I1MZsmUNOGV+giFkmTmegvWaMWACRr/CfN?= =?us-ascii?Q?96XOVrnux7kC07xjrRn3clsYjqBCGcrRu6GPP13h5PzHBpX9X5UBJYKeR68J?= =?us-ascii?Q?Mx93jM5U6MWEj5C8vZsaVFD279H/bZ5CKwkT2moHkFU8otm0LVa7CF49VVJV?= =?us-ascii?Q?E99AaHRbTvPOFtzR9p30T68La/AMcU/2BhbpvCwn94QLOi45YMAfFrseU7fu?= =?us-ascii?Q?2oIPdygPrYo5D3DdvnIA+oXuLD1d/cIMO8CWBCaCllLN9629mStEzo6TsMih?= =?us-ascii?Q?o7zd0Pg/K/JpvEoTJ7gj7QFA?= 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: 36002467-7eef-4073-4bfc-08d915555f43 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 14:51:06.2692 (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: GnkBrQo4Omt1jHKW3dVCzhq8I1/O1e1URl5YzurO0Mwmb+McoroZyrk7t3aVEPwTv0gp9okElT5WOVCM2hX0nA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5369 Subject: Re: [dpdk-dev] [PATCH] 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" 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 ; 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 16:36, Bing Zhao: > > When switching to the Devx interface, the kernel driver behavior > may >=20 > What do you mean by "switching"? I mean when changing the Rxq from Verbs API to Devx API. >=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. > > > > This requirement comes from bugzilla 312, more details can refer > to: >=20 > It is not 312. >=20 > > https://bugs.dpdk.org/show_bug.cgi?id=3D645 I will change it. >=20 > You can remove above lines, because the tag below is enough. > > > > 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 >=20 Thanks