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 9BB5846118; Fri, 24 Jan 2025 07:47:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 267D540E2C; Fri, 24 Jan 2025 07:47:21 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 9D3DE40E15; Fri, 24 Jan 2025 07:47:19 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4YfSxZ6vq3zrShq; Fri, 24 Jan 2025 14:45:38 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id 76BA7180064; Fri, 24 Jan 2025 14:47:17 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by kwepemk500009.china.huawei.com (7.202.194.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 24 Jan 2025 14:47:16 +0800 Message-ID: <1352bb5e-0cbd-430d-8e47-f20313fe83d5@huawei.com> Date: Fri, 24 Jan 2025 14:47:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] mempool: fix rte_errno in rte_mempool_create_empty To: Ariel Otilibili , CC: , Thomas Monjalon , David Marchand , Andrew Rybchenko , =?UTF-8?Q?Morten_Br=C3=B8rup?= , Konstantin Ananyev References: <20250119174643.2162110-1-ariel.otilibili@6wind.com> <20250120122156.2480524-1-ariel.otilibili@6wind.com> <20250120122156.2480524-2-ariel.otilibili@6wind.com> Content-Language: en-US From: fengchengwen In-Reply-To: <20250120122156.2480524-2-ariel.otilibili@6wind.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemk500009.china.huawei.com (7.202.194.94) 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 Acked-by: Chengwen Feng On 2025/1/20 20:21, Ariel Otilibili wrote: > When returning from rte_mempool_set_ops_byname(), rte_errno is not set > for error exits. > > The API requires rte_errno to be set in that case. > > Bugzilla ID: 1559 > Fixes: c2c6b2f41305 ("mempool: fix default ops for an empty mempool") > Link: https://doc.dpdk.org/api/rte__mempool_8h.html#a82e301ee33ed7a263ceb4582655dc3ea > Signed-off-by: Ariel Otilibili