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 B6158439B5; Wed, 24 Jan 2024 13:04:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89F3C40294; Wed, 24 Jan 2024 13:04:03 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 570A64026F for ; Wed, 24 Jan 2024 13:04:01 +0100 (CET) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id D59205C0087; Wed, 24 Jan 2024 07:04:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 24 Jan 2024 07:04:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1706097840; x=1706184240; bh=et7qVcLb8GZmgo8QA5cGTkm94rrCYLsjISQSY/plmaU=; b= Dy7kByBxmncp7e/tgd9iikQEbA6mv8DXc3b2C0Lzac19O7ABYxOq/vf78+jqhRcm fBSMz3phqiTgHQnNdAOBedsIkQ2omzU5hV2Bm3ue9zOaJ83E7gog5FmM9OkFoxuX j8aF4ECFDPgbclFWWy8z4TPo+AvsDWzT1f6KANHBAMq0iZ9J1IMwShG1CNRvG1fM 6GRYpL9tfYv0luS5jEq2CMxgiZsHU0rVi9ByGFl1JeB7umYAHSByGDcJJBbh8rI9 C+ZFLNG9xQ6u/G5fMgPn2f2nrcZUBCiSxRDniAO/jxljN/3CuU1AlXRSm1jXxizT yQWVJ/4pxTIwv31MXaakvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706097840; x= 1706184240; bh=et7qVcLb8GZmgo8QA5cGTkm94rrCYLsjISQSY/plmaU=; b=e 6YrNb+yb7Q2oOkO6done34APxzzO0kvzo04r7lY2d0wjWxJEMjPXs3/fOD7NO44g Mswr5L91VGQbfD2qDOyZE9ArW5EoAvHm8xr3gLNGmzBRx9bkiiZGjkh6cJJBIayC ZEgAyVIO4vSvPKY7wNeD0nRJ9yl8ATPAWZOv69uSMmdKi1CvOsmi1QOVSS9Pz6F9 XDl8UbLtETMqmQ4mysjaOjPUQQ+/HmD97oHw9wpl46XSpS3laZOCKZlvviuuLTLg YhxcEesrB5VTaOH3v5CJLLUgELTVVkqdNditTmGPjVc/uzI2qzZzZxjVaIDNHwxx +oIlC13R1blUp57wS1G2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeluddgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Jan 2024 07:04:00 -0500 (EST) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org Subject: Re: [24.03 RFC 1/3] args: new library to allow easier manipulation of cmdline args Date: Wed, 24 Jan 2024 13:03:58 +0100 Message-ID: <2007834.8hb0ThOEGa@thomas> In-Reply-To: <20231102172849.7400-2-bruce.richardson@intel.com> References: <20231102172849.7400-1-bruce.richardson@intel.com> <20231102172849.7400-2-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 02/11/2023 18:28, Bruce Richardson: > Add a new small library to make it easier for apps to work with cmdline > arguments and build up args to use when initializing EAL. > > This library is optional, and can be disabled at build time using > the disable libraries meson option. This is an optional helper, so why not. Another help for applications would be to allow initializing DPDK without the need of passing or building argc/argv arguments. I think we could add new functions rte_eal_init_*(). Example: rte_eal_init_prepare() rte_eal_init_memory(memory parameters) rte_eal_init_devices(devargs) rte_eal_init_threads() It should be possible to rebuild rte_eal_init() using above smaller functions to keep the big old rte_eal_init with argc/argv for compatibility.