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 C00BA439B6; Wed, 24 Jan 2024 14:57:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4504A4161A; Wed, 24 Jan 2024 14:57:25 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2052.outbound.protection.outlook.com [40.107.20.52]) by mails.dpdk.org (Postfix) with ESMTP id 6CF3841156 for ; Wed, 24 Jan 2024 14:57:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S9lEbz1hRpsrdwmghsOljTDbICaDshBsaHFi/rzdGHL2U72083YYsTYZN8Lb2CEGx8FvZXa02YkxiIuhHt/yRaZyiwUKACJVTrzcbGjPCpa3t6Y/0cAW/k1lMnGW/8m25GjcuOixwZe/4ByN7JKgbj+8KrpWRWqcJH4jB0qQMedDZULe89Ae7fDXl/vgL4fos2okEdcyYr9lIHIhfInkp0uJJFdpBIpeIe5YI8Ef6ZuiKtyuPhtPJWGjkxtmDPwkdzkhzi+hBF24Gig9rlpSdBrztIljCt4a9wRBy6XXjpLs6PBCvm51TTViFN7/y2fxtf32npIvgW9Jt3jdAsGK4g== 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=p7588Xohm3lyknpg9UKbyqh81Rhmp86pA45JgIZqacM=; b=S0lK7VLs58hURRfllOEEMzQQJpkM6ikwVt+hhhTp6HRJToKEiN+7YIp0TvpBhtoUEI0z5GprB74Om6HV5PoOS4iYGlAwB53cWMriFblQPW6WjBBPEs6X5Ox30TnOS7onH8KZmbzTcsQXMnTTDNPL6nNWzQqYqt7YxK8neeTZZSOJtfjDvYomF3GwiuM+XEubl4vyMz0UoNU26KyV+QeXJPssMu17JftB6WBt5idqy3fFdTHUSNzWqZcOVaOuCRnmTZ9W0yKGVa0ivCTa1yBm6MgWjqUHsjB3jyYC1vbnRg59/1410rViYCoiEz9M4Yv/kKmtqZe38UQRrCxrXCSWEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p7588Xohm3lyknpg9UKbyqh81Rhmp86pA45JgIZqacM=; b=zLDST+fCLtHtOcQOOE5g4K/AKzh6mOVn0VG5n/WG7gxUtT5UO4uLByZX8eKOqJ945PLA7orOinURqUZqIfize8sm1AhTyE0jQ3vH1J++AXT3Q1kU8BX8aCFc5tuVMDHkf+UNa5jZyVJtb9kiXMY3JcdLMJsYB1lAXBRapW9zD90= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by AS8PR08MB8658.eurprd08.prod.outlook.com (2603:10a6:20b:564::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Wed, 24 Jan 2024 13:57:19 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::6ee5:b854:81e:c23e]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::6ee5:b854:81e:c23e%7]) with mapi id 15.20.7228.022; Wed, 24 Jan 2024 13:57:19 +0000 From: Honnappa Nagarahalli To: "thomas@monjalon.net" , Bruce Richardson CC: "dev@dpdk.org" , nd , nd Subject: RE: [24.03 RFC 1/3] args: new library to allow easier manipulation of cmdline args Thread-Topic: [24.03 RFC 1/3] args: new library to allow easier manipulation of cmdline args Thread-Index: AQHaTr1x1rxvpJYsHUuPEzfi8gETOrDo/FyQ Date: Wed, 24 Jan 2024 13:57:19 +0000 Message-ID: References: <20231102172849.7400-1-bruce.richardson@intel.com> <20231102172849.7400-2-bruce.richardson@intel.com> <2007834.8hb0ThOEGa@thomas> In-Reply-To: <2007834.8hb0ThOEGa@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: D069520F4CEE6046BE7C1877E2899229.0 x-checkrecipientchecked: true authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBAPR08MB5814:EE_|AS8PR08MB8658:EE_ x-ms-office365-filtering-correlation-id: 774f2b2a-462e-418c-0b0a-08dc1ce4617b x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: true x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Oe/j89gd61TT2BBYfKMFguj7y1wjtfyQrg02hVnvN/n1fawFPLbKSmUGVw7REUF5XFNC+nrlex9pnf1mUtSZcBnE0abWFU/5ezqmcl1hhGsc4KjRUCbijkaKOybH9Sb1KmBiYx5BfGtUfOL/PUnv7Qko7xPAX2vnIhC4iFq9Z/kPxF400GhcUGf3bgTQL000HcpZD3sYPVEuSTnaS3b5OK6UsOOPO9uL59pGxL1eAW3aOS85seXZ6rqHRESzLwO8q1Rrf2cMSYfZP7Ci+9NUlK8Az5ArkRaVHIRqhtmLDwTMXPqyuo3L5yqVetyot4LTkIXOmJ1n/XF9moKh4/1CRna7m7uzg/J/cdr0qAcYiak7yLpNYFeJyIWCQRrqJRRkCQRX2/ldXRXo6dhKemmWCwJjmClk1boG0Ge1tqcx7Wdx+MOit+/MK2AvMomXq3Tim7MA89lsAxdOgItDN597ZJVbU5R7FmDPJNsdwoN2RZ3AWlM+l2EDQIVEPzjio7CTZJYkgiIZCWjb7oJFrg5lV/H4a+0dbX4YzZi/PgcwTj2tnmZSknKR1uoGgTSOf21EfKm9tkNjoI1AT9+nVEMolBfQhlBybvS6OKQBArH2O2LdsFSZ/l3ehFfhwC9Dh1En x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(39860400002)(396003)(376002)(366004)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(38070700009)(9686003)(5660300002)(38100700002)(122000001)(2906002)(54906003)(64756008)(66446008)(66476007)(66946007)(76116006)(316002)(66556008)(110136005)(8936002)(4326008)(8676002)(83380400001)(52536014)(55016003)(33656002)(478600001)(71200400001)(41300700001)(86362001)(6506007)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?d+Nnxy5HpopRi2VJDiNcpmIdTymaVuQJA4Pn0wWRbjSS4KjIIRQYl4xbCXoU?= =?us-ascii?Q?DK8jUJNXWbEcD8F8khfjqMFvzcgNZbXMIQITwC8NsxYZ7mErOClXHTj/sNKh?= =?us-ascii?Q?tfKf+i7lMesTkIpUee1Ue5bij/+GssQbyU6FAlnR7AORMB+E+sfp4BP3oobh?= =?us-ascii?Q?5v/nkNnjlqTE1JDCVJJOBWfTLZ+DMpQqVfmz/ZPCSjjkZo53Y5A+R5tP3DeH?= =?us-ascii?Q?4ft4VqUlgC3ShY44N7OdzaRs++EvBj3V7+GKycb0nKcu03I2tMFltcve49qF?= =?us-ascii?Q?qkVqGhUoB83OyxKDH/1pJwxYbmqrCN09j8IFDsdpXLpCw3c6hWzHgeyiaF9J?= =?us-ascii?Q?NGDswV90JRCtku8ZJ+pDethi7auuOoqnh4b7baAzj8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/0zhxIK1HlDR8iEo1SA+yCgwjeUk3J4T39DONuc+?= =?us-ascii?Q?mQaNApqOkWA8VcfQjHWa/qSVcZSrNks9Ewc7qo7h5Z4XgQP/sCcS+7OL97Pe?= =?us-ascii?Q?k76FRPImY0s7wC7OZw2mTpS+0b69mRrA7ExEtDffnyUAeTaVd80itOHJ66Bv?= =?us-ascii?Q?dUe9HeDBZ4DgTkMpxGoEcW7hlJXMiBTQjVEjcNhz/xnxcY9ItsEPpcpJcRn2?= =?us-ascii?Q?IgeyhzA1vSHVe0XWOa5SSY8JBO3q4ivmS2uneiLKVFvrha2hPl2p3UqcCTlH?= =?us-ascii?Q?fiVg5EkUUl8cuaUcQ3/OVKmb3R2Uu01keJOmvJWN6hGipy73Q9KPidrsHCHB?= =?us-ascii?Q?kVOJL33rOIvZSbtVQN15D3LhqO9meyn1n8fmpCy+q8CcPW8aN3m8Mv0GPjQ0?= =?us-ascii?Q?Y2S4Cg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBAPR08MB5814.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 774f2b2a-462e-418c-0b0a-08dc1ce4617b X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2024 13:57:19.3281 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GnTooXR60xJP0Uo3hqH2irt2X52A3FH8agFzVHv3uoHKW6G62CyS4bwa2u0Oap95weQV2JQyIAoqs/F8MXktVcJqjA+gXY3jFtnU4PdYnrg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8658 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 >=20 > 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. >=20 > This is an optional helper, so why not. >=20 > 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() >=20 > It should be possible to rebuild rte_eal_init() using above smaller funct= ions to > keep the big old rte_eal_init with argc/argv for compatibility. We have to ensure these new APIs and argc/argv are in sync in future change= s. For ex: if we add a new parameter to the API, we need a new argv. This i= s not a problem, but we have to do this manually. >=20