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 9CA41A0C5B; Fri, 26 Nov 2021 09:52:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F286406FF; Fri, 26 Nov 2021 09:52:52 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2040.outbound.protection.outlook.com [40.107.243.40]) by mails.dpdk.org (Postfix) with ESMTP id 61AF340140 for ; Fri, 26 Nov 2021 09:52:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G34PIjM9V6hAX7pG9EYN0qp26q6cXJYl4Zz73pzObwVI43IMxcVpMAk9DQsv8ZKkJn0+gDNCnMUoWHI7SBhxGL81zUAd+SdudNLxJiDbqOw9ydOlK36W7xf03sPDyBD+YgAvOdTyltQV5ZlN2INJ0osMO3j+W/PrPk26RL5gZBvj3D3g+jzURG+O18Vsxy2BP2iEgGpfIk8gx0V7q7u1RY9IBeVxXx7yCKDH5dr3LhwrPrixYu6ZdOLowkFDkrB3lGoAgPN2D2kzCPdLytQGqyHqcIqgMonPL+LaQG73+XEozIY896/4YmndZ74HX9nruHeceDWlR8FtJcrPilicrg== 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=nTVwr8cUJwnQFlvFdKfR5zhsSnVtg/n7dmWfCWE4SAc=; b=Y3cYlJkhiNy8KQdQ6bAQ0SjUI+tYdbS2xHLswDYCQUtA5w0nuTREowOZjsyOklsgqHFT/m7S5EfDeXk5gDivlzIQJZBZY+sOAI4nCbknbVx5EQDpua09LFQPITk+XC2TGQN1Hj6iPCoeeJX0uJTgTjs2paI+IcYjcyonBz8x8xjCHl0FjMibADvOXxZcaGh/O2oI9jox9M/65N3sTBX5f1iml0WxFTusLwoN2mflr93wFOoEMhu9qTUVdhyL4zO3qfmdBU2Gvr5nho2XyCuw+bpXWMkw/PS6gNhbmvSLPJfKJpUc809pU0sX+29IHgAPOgg83aeT/yCJxaiAlWEQ1A== 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=nTVwr8cUJwnQFlvFdKfR5zhsSnVtg/n7dmWfCWE4SAc=; b=KEo7ddTRtj3Ebd2XBcsuCPciYezzwYUL/95JY8mYVsNM+1tGRyyscWCrrZkXekp0S3gPY/DTTIX+ajR+ewDWTz+b/ndTrrMzWnmLd6jJ8XmQ1IuUV+NEjO4r3iU1kQPZNZcvuEviHo2guqo4QVBvs0t42v+ZoQylqZUT+w0v8dnKG44AAqDzA5bhErT46n++uQUFkXwGLdsVSn+Z457Z07AksTYioEnGPM/uifowSowHfxZINPI8XaPWVGc/hhOiZ7j/cEYw18UKIbQ8klUIgu0LaY/hiRgVel1ZlH2JEgFow+Sr1ihdrMn9f/iaYoexPaXxssqRZX1p6i50AAmdZQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR1201MB0073.namprd12.prod.outlook.com (2603:10b6:4:50::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.22; Fri, 26 Nov 2021 08:52:48 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::8dc4:eba4:b43b:7d59]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::8dc4:eba4:b43b:7d59%5]) with mapi id 15.20.4713.025; Fri, 26 Nov 2021 08:52:48 +0000 From: Slava Ovsiienko To: Dmitry Kozlyuk , "dev@dpdk.org" CC: "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Raslan Darawsheh , Matan Azrad Subject: RE: [PATCH] common/mlx5: fix MR lookup on slow path Thread-Topic: [PATCH] common/mlx5: fix MR lookup on slow path Thread-Index: AQHX4jn5znj25/NtYkmKyWtc1j9drKwVgWUw Date: Fri, 26 Nov 2021 08:52:47 +0000 Message-ID: References: <20211125202044.3483813-1-dkozlyuk@nvidia.com> In-Reply-To: <20211125202044.3483813-1-dkozlyuk@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-office365-filtering-correlation-id: c589ff74-dbb7-4ecb-3a29-08d9b0ba1f05 x-ms-traffictypediagnostic: DM5PR1201MB0073: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1201; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tjj9a8zm9c32To9JsaqbjUczyaigicEy4mOkcg9dQSlwhou2AUwoEQmI5Gv6sGhYAwFvSpfVNOV2t1g8hC92AXKL3j9gIG2hOHEBbRTBgpdgkjYz46qWLDTeutX1Ug66G1XHJq1mMi+6Eq9AvnJ1zvgaaqncyPjW+xJawRkmNkHUKbk1H88OP2MjrxfxfIV8nL+YfUElqqbuKO39oLLwpdyL5YDeq6gaLbVwFEPl2UOx199nKQeKkpR53aeoAVgl3XU9YnCFikolCc4mmZq7RuvB3F25fwVE7rnIIemzzDl9kqDYLq+hEi3ZNnOltyPuMLRrByAEnmOIYnGNJW+wvkIDD5DKPcGQQYZlZnVJ71LDC4KOywf25SjMWVsXyZ9JHXsM7x8nLQFzvrUHeAhHqDYPl+e4EHMeJ3NZfyss/Sq2ftpTAdeg3XgeHcwusRBMBfIVPoFNflB3FjtkXYL1vvdnp0/lS1R9NetFXqvN/aKBoR32huyc/lcGLHSpXOYwe9Q7y5IXiTJjTFCh0UjLAEj0XvWAssT8lPkLriCjly2sa6Yei5mXj6prPVP9kEvtQCD8IwWfgindDOSH5gZoCt2nk6Qp7tSnDxoGyt/UPqDJ8aAo4176hlXaJ3XWbKn+mcutRRqRRM+7RqgoS3MFrIxp0h26wLoK052Xfben5in47BvWNzca0wJTjmS7sNGv5lZOWNFfPRq4IQDSGNE7Fw== 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)(366004)(122000001)(38100700002)(26005)(53546011)(66476007)(66446008)(33656002)(316002)(66946007)(186003)(71200400001)(110136005)(4744005)(64756008)(508600001)(52536014)(54906003)(83380400001)(107886003)(9686003)(6506007)(4326008)(86362001)(66556008)(76116006)(8936002)(8676002)(55016003)(7696005)(38070700005)(5660300002)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pKoPZmpO7gOdUfUrIqlSAnkBerEt+db/LwUDIgAeUjCt0ODEjjrsw2IH0ils?= =?us-ascii?Q?XVjTFOQa9We2nFyK2Y0WxjDeI/yuREWpLuOQS+AFdx01L2RElEtUT3r84gq3?= =?us-ascii?Q?5FhvhD6gNgnl8GKW4tORx/20lHVh+qy4/N/HW3z25KXsyC2uVCR2gj3ho87h?= =?us-ascii?Q?KON4wuNKu3E4SQ0HGzmhxa4IFC0pVCpHrDNxsvcAZBCQybBYLbEhL+bKjMQf?= =?us-ascii?Q?2FsmKNPfYR+iF94QU3RAt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Ki?= =?us-ascii?Q?LkGsaD5fqjOVZd8BEZ3tj3c4/8HYH1/M+w+kqGiQsn7Mfb3vjHhO5y5SLNgC?= =?us-ascii?Q?5hcztbVhHtmB+NUMIeMeEc1ADfyD6ZHwWwme72qEpNJmnSo5c6TsWECgm9A0?= =?us-ascii?Q?517MCu6FEdgEgZJRNcZFWbYwsY4Bzjv43S96rt9KMp3UILuP7l17dp1aME5p?= =?us-ascii?Q?EB5mWKeyqtYG1+r3baFxq3Dw/vIr/2q9nmDjn1EbQ98Z5RkyHiURt5TYFveW?= =?us-ascii?Q?c2aHSbMiwp0hLWwRG8gBOnImPTFe1XNvmLWMxlCL892CIBQnxGdOTorO3M4+?= =?us-ascii?Q?eLMOeyVFgyjV1i0FWyn4Il06w19HeCe7C5p/2JwW/DCYd8Ks1eWPDtDFEpoG?= =?us-ascii?Q?FXrjIs8WcHizxsOeeQgqAIGUD+a+ucNE/BqOa1qQ5r5ExTeTPasWZTbn9XSE?= =?us-ascii?Q?ywiwRVOOkpV1wbF9jSzcLL3C9ZpRMySbPraStNjHua+a57WL5RrC7lsm5cte?= =?us-ascii?Q?wA=3D=3D?= 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: c589ff74-dbb7-4ecb-3a29-08d9b0ba1f05 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2021 08:52:47.9078 (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: wl/Qba85DFVjfQUMXEu0eHtdP+2pfY42W3oS2ccv/Akk73Fm2RtJKL0PkUZM0bGfVhDaNNVNOQQNlvu6uawzEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0073 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: Dmitry Kozlyuk > Sent: Thursday, November 25, 2021 22:21 > To: dev@dpdk.org > Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Raslan Darawsheh ; Slava Ovsiienko > ; Matan Azrad > Subject: [PATCH] common/mlx5: fix MR lookup on slow path >=20 > Memory region (MR) was being looked up incorrectly for the data address o= f > an externally-attached mbuf. > A search was attempted for the mempool of the mbuf, while mbuf data > address does not belong to this mempool in case of externally-attached mb= uf. > Only attempt the search: > 1) for not externally-attached mbufs; > 2) for mbufs coming from MPRQ mempool; > 3) for externally-attached mbufs from mempools > with pinned external buffers. >=20 > Fixes: 08ac03580ef2 ("common/mlx5: fix mempool registration") >=20 > Signed-off-by: Dmitry Kozlyuk > Reviewed-by: Matan Azrad Acked-by: Viacheslav Ovsiienko