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 CAC1FA00C2; Tue, 27 Sep 2022 15:04:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C169241133; Tue, 27 Sep 2022 15:04:37 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2065.outbound.protection.outlook.com [40.107.96.65]) by mails.dpdk.org (Postfix) with ESMTP id 7640F40694 for ; Tue, 27 Sep 2022 15:04:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BHzHh+zK7Y8KF+WJV1JSaxyQTwQD1T7q8je8gNNEUpz2S/TzRsfDqCTRVu5JZ07FxBUoA/wMeqJy3zTt9Vfj7cLMiU6Q15hckuQE7RJkChYks4zudUQTCos3cel4OKKpa2i81J4RFGKPJnwTz1VPz3UaRknPGaAhGFEfMEox2WyQPQnrSaYayVBUuT3u7hWOj/qmjgNgMBP3wt9DiaYX7m2GJd6c9gjfnCfLaX7prvgxm2DlpikNhsw32SmaMqOAvwbyetzy1eWKSmwAIGMGiI3VfWyDnjR41SaZymr56f8GSE/25DZdGLIizUfcgsxESkkhb+7XKcqrjBS4TaZHsQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P52WZ1rge+SWw4Q6WpsxxyVSQLyhrlESGicwo4+B6nY=; b=fY6XU2AuZEYjbEJKavO3haVPtsjG0BLAIW8dlZ3vmcttaObL83pEKKGWFeK815QVz3KjDsjOX6MsqMgQ9eZmy90oOUfHSgdEUP3iaX2RMlj6DAV6QgGI1uUVytXChg+bLE8rGhv7cUNXZD1SghegsPRzhVQWrtrf4ubr/L9I4sbIPLJYDpEPzLd5XEDlKlUvV+YEyv9paP4k0QHAHKQJXmP3p3Ue5z6lzDA0en2QJGig8veJy4RR9Th1NROwsvg/+gFDfdL951ocNBnqOSPCzqLFd4Gc2rJAd+GheCchfmE1Ml3FUHB+ALIryV8vUftYuEW9vZBLCs/BBUPND9wTTg== 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=P52WZ1rge+SWw4Q6WpsxxyVSQLyhrlESGicwo4+B6nY=; b=rezXQwxFiJXb62KLsYDDDkuPmQUz8f2X9j/toba548m9nLZeqWU7z07Pr8IQRCO1gIZAwByB1odEGdBl6tgbT5lgUOfn7mlQgZjBgPF+DHpP5DuUjC5+aaR8Yodfg+KfASfGAuoJHm6bgbg24k8CcNDtkyf266Dps6AlYRtrogvvO4NsdYrqikkjCPMWxUasT+UvVlI2CyxUnqbr+XtweVl+YyMc/YdBZ8iLFwkyVb9VVV49RkUbCab6lKPMsFIlBTys/xkSsgDhOhfWV9EsjzTH0gMw5JOW0q1+GD+PNUM/5MFvCkn8RhIzLcDJmwDqafUDSRrYp5S5H9TufL0xDw== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM4PR12MB5277.namprd12.prod.outlook.com (2603:10b6:5:390::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Tue, 27 Sep 2022 13:04:35 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e0f7:a30a:e9c:4c53]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e0f7:a30a:e9c:4c53%4]) with mapi id 15.20.5654.025; Tue, 27 Sep 2022 13:04:35 +0000 From: Slava Ovsiienko To: Dariusz Sosnowski , Matan Azrad CC: "dev@dpdk.org" Subject: RE: [PATCH 5/7] net/mlx5: allow hairpin Rx queue in locked memory Thread-Topic: [PATCH 5/7] net/mlx5: allow hairpin Rx queue in locked memory Thread-Index: AQHYzEZkYP3JtAI51UC2Qon3FazWh63zSshw Date: Tue, 27 Sep 2022 13:04:35 +0000 Message-ID: References: <20220919163731.1540454-1-dsosnowski@nvidia.com> <20220919163731.1540454-6-dsosnowski@nvidia.com> In-Reply-To: <20220919163731.1540454-6-dsosnowski@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR12MB3753:EE_|DM4PR12MB5277:EE_ x-ms-office365-filtering-correlation-id: 8b146428-0443-4384-daac-08daa088d39c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RFYUsq6+4KpAVjqSDOvrswRoS76OxDBe4xD+ZvY1OAzyg+Dgh1nHjLLso6UTVpGwQwLfWI2b8aqS4TZbFgyiu7afqs42TtwXt0dKbnJJ49ptvCTl1l+/6p/R+OBJVVkndc2G0HO01iYjTrRlhQ6/xDdT8igd8aMv25JXfaf6XLnmV7fkgQHQ7j7VX8f3rqFwyb99ltWtB/Ih6I9wZ0ejQveUO40RQU54SCNqljiR/CNMgyM9c32F/q4YeVM4tyvcFwx/OVqrths8C6wzXeEu+tlzRtW1+XULiYunv5BreHGeTeu/pFpcArL1SKKFhwyqjDSTinm9SWi9T0ujHZXCL3d/ZC3PWAp483AFjFOIDxCUNzhAh+fvmbx7aM0gqWF1t7eTuq75jD/DgpttnUO0zne0YWrR+UWxZxl8RKbGst7w+xxxIyMDKN8LHfbKqgLiueD6Sxh9b24AyA5KMeaXmvpd9HvMP8YE2uTjX6rJmXB+6a0PKSD0dbMeHJ53Z9AKzOzSjr/dAhSYBXmrC598NtP///yju3oAhD3Zj/cHzNhjpa3C15ZGFW62LtKTbYfU1xH2bSc+yUaruUmabyeVT+JOZa6DBPt6vYQfCdo3TMBJM+bINtb75OUlDWRjOM5cuEcmEqSdgGPRYlZAkWHWG/wlB21YgHynpErzTzNU0rIdkTaC2MTqLmEECZ8K/1g9LnRAwTdrugfpiFYFvG8JL3fLFKS/lPn8x8p1t/7uJ5aLEDGH9EQiX/GLB1zcH/EIb2CFWs8pPid3J23E6TYf6w== 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:(13230022)(4636009)(136003)(346002)(396003)(366004)(39860400002)(376002)(451199015)(52536014)(8936002)(2906002)(4744005)(5660300002)(110136005)(6636002)(316002)(33656002)(122000001)(71200400001)(53546011)(41300700001)(8676002)(66946007)(7696005)(478600001)(4326008)(6506007)(66476007)(66556008)(76116006)(66446008)(64756008)(55016003)(86362001)(83380400001)(38070700005)(38100700002)(9686003)(26005)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?H3eB0mFCupmn1xwDmnUL9O4ssFKCIr6Rwok23J71Jm5BnXNWHneafD3jtCap?= =?us-ascii?Q?9WAXFCA2NqO7iCnyU0ejVA0MNcp7vi3LVSfsY56tdtBVTQ//ZP4shQSOjQ1m?= =?us-ascii?Q?BaiYl7sORtx/CPX3/vD5ViHgcQMAVuuMIlnI5QXlBsrMgsk+P/DYos0UcwfB?= =?us-ascii?Q?rp2Y4mF9WlUC3s9vY4mO5cpLH4CDmnVpgH7WpKvlhBZUS8N46ojeBVk2FgDE?= =?us-ascii?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IMU4t8w8BJvwlaaswTD8hKwQ?= =?us-ascii?Q?Dlhpj81okKZgtLfki/CPldHANTh1AZmoiOIq7kT9opaLB3oj8fn3DO4BLp2I?= =?us-ascii?Q?Zrtj+Jf2Wb4AdHT41amAG4BQVNUrMAc06u22vFQGZ/sZUqpbBIwWkrNuDjxx?= =?us-ascii?Q?MQqN1pKu+23foHDo0EEQQS1iuMx/0OwP8wGSBuenT1mkhp5acMx+x5PHTB//?= =?us-ascii?Q?t3jrzrLmEZ2+JOZ5rBF+KqBSGSHmlU0mULpA91ZC5MzFMb7W320rGPDK2Umx?= =?us-ascii?Q?jbSxG5eT5/BQP4cWQVV7B3R7IdzVE05il6I+MXR37cjiKgdxAcykd9/JooPO?= =?us-ascii?Q?L08QpoFGzh9XDCof4QYyP1yi3K9Fk8vUFV2cowV+Vx4EYdUtMI1j12/ChFwB?= =?us-ascii?Q?MsdSlw/XxFAGvs5TnXDs66Bu3TFV+7ZfN6ETFbCt8BT1HkFkkYpSJSA+TahX?= =?us-ascii?Q?0Z/NPWuGS7TTHCmj6ozfFzFDREjgTcia9my1OCbq?= 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: 8b146428-0443-4384-daac-08daa088d39c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2022 13:04:35.2458 (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: UqOH9bVbXL0Ok+hhR6kjYsoDi9uS+ZBTO6MuiJfL1S3Sv40dXaK1cw9Tad0sKeEVygL7lapzjAmdUCJXhXiutg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5277 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 > -----Original Message----- > From: Dariusz Sosnowski > Sent: Monday, September 19, 2022 19:37 > To: Matan Azrad ; Slava Ovsiienko > Cc: dev@dpdk.org > Subject: [PATCH 5/7] net/mlx5: allow hairpin Rx queue in locked memory >=20 > This patch adds a capability to place hairpin Rx queue in locked device > memory. This capability is equivalent to storing hairpin RQ's data buffer= s > in locked internal device memory. >=20 > Hairpin Rx queue creation is extended with requesting that RQ is allocate= d > in locked internal device memory. If allocation fails and force_memory > hairpin configuration is set, then hairpin queue creation (and, as a resu= lt, > device start) fails. If force_memory is unset, then PMD will fallback to > allocating memory for hairpin RQ in unlocked internal device memory. >=20 > To allow such allocation, the user must set HAIRPIN_DATA_BUFFER_LOCK flag= in > FW using mlxconfig tool. >=20 > Signed-off-by: Dariusz Sosnowski Acked-by: Viacheslav Ovsiienko