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 3F9EC44077; Mon, 20 May 2024 12:58:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B9B7540648; Mon, 20 May 2024 12:58:26 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2068.outbound.protection.outlook.com [40.107.243.68]) by mails.dpdk.org (Postfix) with ESMTP id 755E9400EF; Mon, 20 May 2024 12:58:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GcWjd9ZhWl1hBseozYvFn4MgnCY/eoXBk/VbMVAWnOVaLOxCtKWMJtE4pcpTD0LemKuUlqeuhhNZbkIH60N/MBCO0wto9/CfnpflMjbHN+miA6Y7U6TxnFn6pB7bLw5xJ8zS8imwbUL53g23agF2AcPmLsWyvcPvwdujN0lozFTMGim8LWpm4Dcr8MEMyMYZKX/RqSfF2Z50g3wqzCP9OvOcbHxhiFW6wqQOYRuUaZjx62oeVckmG3L8lmWJUW7+XZoLTljpoxQKxJkkgxrNXtDRBzbWRP5MgKzJXFvyaryZue5oUOP/9XUmNIJ706k//CFz9zp6enC4rFnYWB7mjQ== 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=I1A8hS7aA7Y930DNWk7RcKN8TOxMFiPw6KVrNKWZ8bg=; b=IBXzp5gjyFPojSfIDalr7HeMXlIabOAoOvqJExtUAWPaj7Wf6Sio89oPior2QCrv3Byyp0tkX+uX1t9H0XYyyjPwjLj/ZmdqkLXKj0DIdss0hjktps7C+wT0H8HFxbx62a17ei8hqFhTvdHVflSQqGwXjP4C/jSGY1MB8T2XxnMnFKDrnsnNlpU877pLtXhqOEMit5Xl1fWY7CoPCXha4nspO7mjeom6ZTzgrP2M3t6KoD0Oh2x21qNtmSiNKUlfXHRam4BkTGZEzWOed2r9MxnV57LuQNt6ys5HQ8u4IyiCbn1NzX/8yCAXBeb9QLquw8IU0e8u9QrA8Xg22AkBdQ== 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=I1A8hS7aA7Y930DNWk7RcKN8TOxMFiPw6KVrNKWZ8bg=; b=iRT3nHDcgj3+1+MTcU6LVmloEW3lK8WnzLb7NeLVsqui1h5fVjwRdo3pkQl1Vfz3McLuCSvHKBfUGOIrq6wWMjbOUHhEo0ZazYbx/hp3woUpA0mX6tQJtOL63szN0Wm6dRuCBNdn1NnYzgdgMk4+2ZU+v47nt29xhxvV7VqG+nmWVY6aTge9ns6ZNKDutP2MIO/qffLI+7Uq2mc8+fnf/y1ixXypLRZ7S4Cfk1rdAQAYth0ILPOK6DbRNm9ktW5uM/DkwS2e+rm/Lo59gDds5++d84HWgLe0SocqD+615f9wbMW8FH47FM+qr2Dzka4/WPT9DefGNYBqHcLmI63zBQ== Received: from MN0PR12MB6056.namprd12.prod.outlook.com (2603:10b6:208:3cc::12) by MN0PR12MB5882.namprd12.prod.outlook.com (2603:10b6:208:37a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 10:58:22 +0000 Received: from MN0PR12MB6056.namprd12.prod.outlook.com ([fe80::4b75:36f4:f278:fcc0]) by MN0PR12MB6056.namprd12.prod.outlook.com ([fe80::4b75:36f4:f278:fcc0%4]) with mapi id 15.20.7587.030; Mon, 20 May 2024 10:58:22 +0000 From: Raslan Darawsheh To: Haifei Luo , Matan Azrad , Ori Kam , Slava Ovsiienko , "ferruh.yigit@intel.com" , Dariusz Sosnowski , Suanming Mou CC: "dev@dpdk.org" , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "stable@dpdk.org" Subject: Re: [PATCH] net/mlx5: fix bug trunk is null Thread-Topic: [PATCH] net/mlx5: fix bug trunk is null Thread-Index: AQHapquMoUta8EYhBE+cRFdxIFed27Gf+7L6 Date: Mon, 20 May 2024 10:58:22 +0000 Message-ID: References: <20240515093653.216563-1-haifeil@nvidia.com> In-Reply-To: <20240515093653.216563-1-haifeil@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: MN0PR12MB6056:EE_|MN0PR12MB5882:EE_ x-ms-office365-filtering-correlation-id: 370a6fa1-19b9-4922-8687-08dc78bbc463 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|366007|1800799015|376005|38070700009; x-microsoft-antispam-message-info: =?iso-8859-1?Q?sipf9HrDElb4Dz/O1zOLUH4D1AYx7ZyGu7BNJGSsGGbSX1FPGSk5EEp0NM?= =?iso-8859-1?Q?AKHrFpUU/GlIP+JZP+o6HhVPbUtQ754aq6jLE1HLfgAfUtak/nt7vSqXy+?= =?iso-8859-1?Q?SONWLsDRb4V9p6ETrUg5UebrZTBvkPPuvoIgV4DOyh1f9GtfTvox7bLves?= =?iso-8859-1?Q?DDTImhunQZ3LLxvknujCzMuSa5/IkbTnjtZxMfF3B6kJ7XT5FF5eOWP0S4?= =?iso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Iv95Ye4aBkfWQLwAliCGfsXD?= =?iso-8859-1?Q?T4zwliXKExTBG0oR1e/Al/i/w7l0H2ItJpGR3DYA37nFRrmeeimI4OeaTg?= =?iso-8859-1?Q?cJcVmckV9I02UpDBhpw3HAkHEgmxezpI53zQDC2HvoP37KbG7b4NKqF/86?= =?iso-8859-1?Q?i6k1P0jlLBA8NmwIJbLb0JPGMciOatvuonB7JXLEGdDAJEhp3hn964S2jV?= =?iso-8859-1?Q?+Qr0lEYcMA2l+mj8uB17icDgN1QOtuvcFLzHe/MhLAAei56qa0olHE5kWM?= =?iso-8859-1?Q?CkRpsGFR+GlsOyB/49tPg4f0EK4RIOZw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR12MB6056.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(376005)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?F77uAPpw4vop9WbKvf20uDDyzECanNaYpvG/0e1BN1csnAE1M5CIU3a8L2?= =?iso-8859-1?Q?padNEe+MsebCH8t+Z1SOcwDdIKpqYOkDslH6zUVhw+DD8mlztzQdQT678N?= =?iso-8859-1?Q?b053880fC2dQ5quRRgRGbDzjcHYzoIwY1mE921nof+Niva71pQuuaKoXGh?= =?iso-8859-1?Q?PCkg2QWScRia02o+9xppWELysOQoQu1znU0j9cMBp4RrrIuJf23SA3WV4t?= =?iso-8859-1?Q?/fojR64EXKcdFqUEV5Kn7JzPYTSQ+KEc4UD6o5WeAAIG02qcVCyVBTvO0+?= =?iso-8859-1?Q?TdRLoSnpgyA4I7Vm8vKYJ62kt7hHynCIWxCvTEqGmOzDQu0QikTizdNwyA?= =?iso-8859-1?Q?8UKOULFlOwjEDefbheAMvs2cNm9ND9qm+WUYgc21nSr3wJp2LZD0zSgbbN?= =?i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vytGbZ27pG97dnELc3k/4J?= =?iso-8859-1?Q?iX/Mi3jadtP5KoB8LAUmYen0RXbNGA82b/KjnVsqLBTAGfcNi2iRaW4TvS?= =?iso-8859-1?Q?Sa6xbtd0e2hhdmDk+d7gQN1te7USMsieXO5a6ArlqYNYq73Clw0M3j23Zt?= =?iso-8859-1?Q?gL2gGmbDOlkIii79yjErS1utqrSLXVeYGrysKmP3KPRqStyP/z1vh+hAft?= =?iso-8859-1?Q?t4qUka4Wjt1OMRFhKiNCbiVd8TznlbqtPA4VAvYHiPdzyMQ/L4Gqp1DmQx?= =?iso-8859-1?Q?RTes0VKi4I9h0kohBg2lyAjgLP/N/FdKQ1UWB9NAeC1Eb56vs7yN5feARB?= =?iso-8859-1?Q?SaLjvPoYbOgx0=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6056.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 370a6fa1-19b9-4922-8687-08dc78bbc463 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2024 10:58:22.8773 (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: JNitCol4fYxRhiSPO+nJlM8vugS7Y0uzxIpVsNd+w7hcvk/wOkbqqChjs8+KuHAKLku/LCSmv83D23YOnGTtFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5882 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,=0A= =0A= From: Haifei Luo =0A= Sent: Wednesday, May 15, 2024 12:36 PM=0A= To: Matan Azrad; Ori Kam; Slava Ovsiienko; ferruh.yigit@intel.com; Dariusz = Sosnowski; Suanming Mou=0A= Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon (EXTERNAL); Raslan Darawsheh;= stable@dpdk.org=0A= Subject: [PATCH] net/mlx5: fix bug trunk is null=0A= =0A= When _mlx5_ipool_get_cache is called, idx may be invalid and=0A= the "trunk" is NULL in this case. Assert is not correct and add=0A= checks that if trunk is NULL or not. Return NULL If trunk is NULL.=0A= =0A= Fixes: 42f463395f ("net/mlx5: support indexed pool non-lcore operations")= =0A= Cc: stable@dpdk.org=0A= =0A= Signed-off-by: Haifei Luo =0A= Acked-by: Suanming Mou =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards=0A= Raslan Darawsheh=