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 AC8F7460C2 for ; Mon, 20 Jan 2025 11:05:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A1D3440693; Mon, 20 Jan 2025 11:05:20 +0100 (CET) Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by mails.dpdk.org (Postfix) with ESMTP id C20E040653 for ; Mon, 20 Jan 2025 11:05:18 +0100 (CET) Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-844e06e5d11so115269439f.0 for ; Mon, 20 Jan 2025 02:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1737367518; x=1737972318; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RoJHa/7fcadzXrRut2IcxEDx1TAG9rKOhHH0TvDsfm8=; b=YYemhUjhkPakLmlfjY/YUPNNN9XdEBFqGCM+TDBlJia8ZnGL185zPqoUvHfato9kx1 ASzWXeYzwidjxNZGDdk5r6t9QkBn+myJBckg4VcT9rDITIbDaNUa4ofi8JjWNStXmWmV WrAWHgm6vb0eFmKgSiwSsuP17KUFuSEWaDkDGV02zu1C4ki944I6hXeAokmdYPCpd/iv FAQdHCN6dBsls8eS9fLS1CFL5Qab7eJ2GE8FDfFg/sAxvCKjLSAD4Eu1nluzxZv6IFOO no6/JOzGQFtFZS84sG4NQdFwQOWjj8YXDqnQupeLptz53puzDdU+utCkKfqGu7+B+aMh wOXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737367518; x=1737972318; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RoJHa/7fcadzXrRut2IcxEDx1TAG9rKOhHH0TvDsfm8=; b=KcPkd9qeQh7zg7kqtWCAX+QbCyNJUnUY6Ni14yPIWn0kHimV/A3v+rVZ3c0ysICFTh rhgBOxnTVHbxWwoPdrmUOylLMys+kWIhcWp7Hgb226VlZwHvCp0gfZi2TZHPGXZJqsH9 QB/HoTLNu8ePzIhNGTyCHYvu8XGQ0pnZuxrkjqSiJ4ToLuETMb6GF4SuVof4bJnN+2z2 UDAT6dpV2URC6ocmNu4B83q/8jEYtpOzan8n9wCXbkYUznf2MdwWnGwJP2qh/TfUrneQ ge3eNH8ftsSIhDQWQdTvIkkfmCYUfoJtZPNQRbuVBGffdZuFG4vhjbp7kXQkuNFk3N4H Th6A== X-Forwarded-Encrypted: i=1; AJvYcCWJYr6IAqoP9pBu0Vs//5JG3I/aavxItussMPp5LW3b8lcBV3Ay0Brsmjv/veh+z3OMZPjU6ZI=@dpdk.org X-Gm-Message-State: AOJu0YzZwvgGpCUmWEp6cjAsYOGSjVVsk1L8Hx1W9RJ0Us/c2hNPM+jH DuWnQFnTljOfhS8gruOfgzJb1zC/gZOqXghDZ5OWCTZtBE7bIizwIFTuNXk6eOht7ptILR4W2Mc I9Yffy7Mbze+T1O/MmXxdWS9HhujfqFbGgNhhZQ== X-Gm-Gg: ASbGncvEqcCUFw+4pJ7Zaz1aEggfVjRk65qMe6OEkBtnMCZloKNhMPAebL2C7TDb2bB dBVqmWy+FCFP9sP3On/aKry7wDmkdRP2/zIlYJP46URk+eDGNeMK2t3wgQUqM+9e+sTQPI0wRKP uJ6HCJfv0= X-Google-Smtp-Source: AGHT+IHUYdQjF1sMjtkyINimyGlC7QW9ZiW6ELKgTw4e66rneOqCMcC0VD+12rD0vMHq5a0ceslEviBYkVYMM0g+k3k= X-Received: by 2002:a05:6e02:3cc2:b0:3ce:791d:7f6 with SMTP id e9e14a558f8ab-3cf74487b41mr84335865ab.16.1737367517752; Mon, 20 Jan 2025 02:05:17 -0800 (PST) MIME-Version: 1.0 References: <20250119174643.2162110-1-ariel.otilibili@6wind.com> <20250119174643.2162110-3-ariel.otilibili@6wind.com> <7524c0626a384d458ca64414ca1ff0e4@huawei.com> In-Reply-To: <7524c0626a384d458ca64414ca1ff0e4@huawei.com> From: Ariel Otilibili Date: Mon, 20 Jan 2025 11:05:07 +0100 X-Gm-Features: AbW1kvb4S9jcpHfDXH3JHTMEVkm0j6uuPFjrvq0JKKNKgBourEKZpn2HHe0wDEg Message-ID: Subject: Re: [PATCH 2/2] mempool: turn functions into single-exit ones To: Konstantin Ananyev Cc: "dev@dpdk.org" , "stable@dpdk.org" , Thomas Monjalon , David Marchand , Andrew Rybchenko , =?UTF-8?Q?Morten_Br=C3=B8rup?= Content-Type: multipart/alternative; boundary="000000000000bd89be062c206506" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org --000000000000bd89be062c206506 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Konstantin, On Mon, Jan 20, 2025 at 12:44=E2=80=AFAM Konstantin Ananyev < konstantin.ananyev@huawei.com> wrote: > > > > Some functions did not set rte_errno; for avoiding that, they are turne= d > > into single-exit ones. > > > > Bugzilla ID: 1559 > > Signed-off-by: Ariel Otilibili > > But reading through public API comments none of these functions are > expected to set rte_errno value. > If rte_mempool_create_empty() forgets to set rte_errno, why it is not > enough just to add missing one in rte_mempool_create_empty()? > Thanks for your feedback. Indeed, only rte_mempool_create_empty() returns a rte_errno https://doc.dpdk.org/api/rte__mempool_8h.html#a82e301ee33ed7a263ceb4582655d= c3ea I'll push a new series with this change. Regards, Ariel --000000000000bd89be062c206506 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Konstantin,

On Mon, Jan 2= 0, 2025 at 12:44=E2=80=AFAM Konstantin Ananyev <konstantin.ananyev@huawei.com> wrote:


> Some functions did not set rte_errno; for avoiding that, they are turn= ed
> into single-exit ones.
>
> Bugzilla ID: 1559
> Signed-off-by: Ariel Otilibili <ariel.otilibili@6wind.com>

But reading through public API comments none of these functions are
expected to set rte_errno value.
If rte_mempool_create_empty() forgets to set rte_errno, why it is not
enough just to add missing one in rte_mempool_create_empty()?
Thanks for your feedback. Indeed, only=C2=A0 rte_mempool_create_emp= ty() returns a rte_errno

=
I'll push a new series with this change.

Regards,
Ariel
--000000000000bd89be062c206506--