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 8AD58A04A4; Wed, 2 Mar 2022 11:19:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BE6642715; Wed, 2 Mar 2022 11:19:32 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2049.outbound.protection.outlook.com [40.107.93.49]) by mails.dpdk.org (Postfix) with ESMTP id EB87D40141; Wed, 2 Mar 2022 11:19:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9Zf/kKm2vzLVWIZWuKi/PDGqlaunYI8cFeGEFTirS/AMt4ZkmfIy0VoDVkwrJOF7X5Jdoe/pLbR/EanIT6pE/Ym3AjpZxEShwJ0dzyF1ZavyKLj8qlY7KitGn4oWaXBPkd4Vbx7gKjL9sUVcUdmw546u8Y0tMrt7ZRp7P9l5Vfvy8n4OvjKfwa8szIsMSTGNhxJYLzDyxq3dNIQZ45siD0ggCU7AwV/X+W+MV0yB3rwzGrBnPPMEzldgLNLcOuBDP/da43s8ChSv/KGb57wjyfoFl4JjLbKom6IHFW0GIzFiauY2kaa7Ywc4D5G8SO0Du4d395ewAMAcSq1bNXcEQ== 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=Z8gi30eFH8vxeiaBPQC7WzsGFlLum3AVECQK0Ob6gUs=; b=Olp/tQOkH/C922ooyMOndQigFb5g4jlucjJj8XeVeQB1Mz1mWu9+hrCX9LANB0QHE/qO/WTY2pY6iJKif4/K7QOFKpv0AR7lsqdrtDBxASxtP0Y19eoQQgAzoL6xcnYEuAbsvuuRqpUyzxqfDOV2+BaL2ZYPEleMqjhHNzAmFY9wdAekEHgZ2MWbByTtPNLOta6GfsVNBgP3qDbpykDXXNc6hFCcVawr4O3cAi1q11SjWh6v3By6ghoXpPsybuFBy9JuX7d6HHist8WA7f2qks3pGIG5slJeSRkiFgIHr9sW+910pUEz/H89/t35llVTkRDAqgf5lpeVBqJA8zKkGw== 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=Z8gi30eFH8vxeiaBPQC7WzsGFlLum3AVECQK0Ob6gUs=; b=J+VlauTIR90Ipx3Tz6/Vb+ap9LPuRFWmlSA31aOGspaeXVfLi0qxrSlZ6ctrddIFAZHQwffYWRiqduHEUbDUt1MwapOH7hiMFh078oWIGAscNJWN3jxH3h9HmtIvEiDyTR4Ad/bMs0rhlNUpVYnUOGt4txsUiUA75i6GGY/g3itJIbIPyFWiJZtuclL8Avj4BZONVHpq/xMpdJ+ajJmQXUj6KbhysMP3PVYI/Oogbp6ijfvjFp9lywC2mabz7KufpCotXWu2YUOYQEalCxB0mXZ6qe4JTP795+4+aVK9ehpAthG8zcwZLwkOYJ51W7p9xHEYDYAaONj+fdWRQME88Q== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by SN6PR12MB4624.namprd12.prod.outlook.com (2603:10b6:805:e7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.13; Wed, 2 Mar 2022 10:19:28 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd%6]) with mapi id 15.20.5017.027; Wed, 2 Mar 2022 10:19:28 +0000 From: Raslan Darawsheh To: Suanming Mou , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [PATCH] net/mlx5: fix indexed pool fetch overlap issue Thread-Topic: [PATCH] net/mlx5: fix indexed pool fetch overlap issue Thread-Index: AQHYKH5SDdgtlWBmAUWgH5kir8tqBKyr7OjA Date: Wed, 2 Mar 2022 10:19:28 +0000 Message-ID: References: <20220223062611.23062-1-suanmingm@nvidia.com> In-Reply-To: <20220223062611.23062-1-suanmingm@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: 204f7968-5588-4450-cd47-08d9fc36229b x-ms-traffictypediagnostic: SN6PR12MB4624:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fLiBCsKL0mSwhUHwgC8B0seDSiPwors64tWKxib13eYU6BKUgEOKBZA8AqJJV2BrYyeU1PgOCKrtDLqdzsKfqrPZL8FIMmQCc3r4uwY5UDeRv0XD0jfDsn0iDsybti/LuD1h0QhXzYy77Tjbpy/rM36oF4v/ubZUfbVK9nHeyTNk/jGR9SvldPOikEVqx7OUoo885essRVXPiF8gJjBfVWE1tmCL3pUWwjrCxsDDWm860rfjZT7KEp3d5dvn83hnQX8iW40TqOtF7L6OXVbFhf+YTwue2mhw/SeX+2uSm1FbXbQMb3UY9GpVwFwy8APgdF2785CDKcNIwx+wV72oW60GjHf8QkpXd1GL2gk1k1qFx7XAwcdiX9yJVshQi4t3yvYMH9F9gINqfJh3Nmsg5VHKyQPLBgXR15R3xTWbCpnhh9qSOzR2BTbAJ4nPPXq7Y2I9QL+JAzxq6+Im2aL+gsffSyLfks6AcwtlO5DiY8dG17rmLhSL26yBH8jWSZ5pqeSSqJSdVFyatqls+zWD+HjbsWUKxqqTlrdo7Wgby+xuyPAxvd2H+fe9uEhfI/cv9aOS9WamKUXCYwnf4A1R6/8XaAfkRTTCwiCzMqi/YkiRqhlpGtmKpdXkzxzpI3myGL20k00JhV/iEfIFm7iDbBhk7nHp7ZvLaTYPMgahcDCJ6FWELSs2qfcxsKEDuLMWfxKF7DsUw8GI73xE+L4nyw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(52536014)(83380400001)(122000001)(86362001)(38100700002)(38070700005)(55016003)(6506007)(7696005)(53546011)(33656002)(450100002)(9686003)(71200400001)(6636002)(110136005)(316002)(508600001)(76116006)(4744005)(2906002)(54906003)(26005)(186003)(66446008)(64756008)(8676002)(4326008)(66946007)(66556008)(66476007)(5660300002)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rKQ/eFHyhKZrl9z7TOSxwApFlWm7xXo0Fnc1pLjF5LNEyjKziszo2NHbwuDc?= =?us-ascii?Q?KhSAyEEe/FzWhATlwNcDVjhUtOmzncHEB3L8vN494nGqN//npUAOR5Delycd?= =?us-ascii?Q?OUxookEqpu9u/m8cxsTbUyU6ZwSVHOn3jAzmXQXTJJacI8fN2M3FZVPPBD5X?= =?us-ascii?Q?lMNDaNLE00qxOZ9BzvG3RdrKyevlsBUFAR2+5cAf6nZOZa1kwRslxLYskVoI?= =?us-ascii?Q?c2wANV6mKMbf+OOD/aHAJKDKnOJa5If+kRYVc03BAo+jiqlopL1wQTcAoxBH?= =?us-ascii?Q?VyotQUOs0KM3Yf8UY9Q5pgQf071nW16/uR6ws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-ascii?Q?+6OiqVTKPuPiHzGZ/49sd4rrdBpJ5J06slhbAUX7NIXqUPiRIvt+S9VgaNwR?= =?us-ascii?Q?pS4cuxQO4Wwix9rLmRxITlon99u6ABxvv1k9RhwgDe2eM8IyJVJDryKlHvF2?= =?us-ascii?Q?gvUx9ivaBJgRGDWdUs6+YuPWYjhizWl6zf7Ny4onY5JJvCBsqqDxHVHocESs?= =?us-ascii?Q?0KD/hGKav72dk2Pxyr65va1yMYbKfMyN9i17NuYnazv1vq0jp5bqo9c+sXOX?= =?us-ascii?Q?U5ntD2e9ZTdKdeolT+87/OUILN5AllH5F0LzsmKMv7aD2v6RnwxPgTYj+UBj?= =?us-ascii?Q?mYX4xTcyUuH+lE04hnlyX/hWze6Mlxobf6CW1GKnR/DK5vOipP/WD3iUF2WA?= =?us-ascii?Q?Q+mnl7JXoMX09EERZIn+9gw5gBQMf8fWD9BK/G9PrBBKaBYmPBuspE3695G9?= =?us-ascii?Q?uIPaWqnl4EyzdoBoFGxQ5vA=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: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 204f7968-5588-4450-cd47-08d9fc36229b X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2022 10:19:28.7924 (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: CY5g/uWcVXONEyVdwLpd+PGt9b0rLSq0vcCBr+Twe/KcrbCqBb16OFJWE/KzliIX0ns5CK0kZ3FyZApIHxGh7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB4624 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 Hi, > -----Original Message----- > From: Suanming Mou > Sent: Wednesday, February 23, 2022 8:26 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: Raslan Darawsheh ; dev@dpdk.org; > stable@dpdk.org > Subject: [PATCH] net/mlx5: fix indexed pool fetch overlap issue >=20 > For indexed pool with local cache, when a new trunk is allocated, > half of the trunk's index was fetched to the local cache. In case > of local cache size was less then half of the trunk size, memory > overlap happened. >=20 > This commit adds the check of the fetch size, if local cache size > is less than fetch size, adjust the fetch size to be local cache > size. >=20 > Fixes: d15c0946beea ("net/mlx5: add indexed pool local cache") > Cc: stable@dpdk.org >=20 > Signed-off-by: Suanming Mou > Acked-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh