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 779B242D09; Tue, 20 Jun 2023 17:02:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CB63410D7; Tue, 20 Jun 2023 17:02:19 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 01BF540EDF for ; Tue, 20 Jun 2023 17:02:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687273338; x=1718809338; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=OD/jjPHI3MEY1fkJuPEUP9epHrCOzAhaB2P0Ih2MMu0=; b=oCHWBnFnFx80WPfZegQwTyCrlitY7SgdORDg56AaVCiERluJs/Ou9Pb4 DlhTvQ2bQt7dMUbrKh0nI6zd8V3l0HyXqfi6a19/GjWZy1dfqC/lQptpx A+UI5w6pMSTRSlbn7j1VpJGppEdl1nfqY/q4movFUzhojqrXiBzermMzb F9TVW1DjfUoJoszkgtpjOY19dcnzzwEzc0i/5CElftar2I0fJ+/JcZ+Sx aZyGKats7Rr6f4d3ydezmYblGXdmJIX9Ydxm/+h046+6Y2gh2yWmBc4eT uvEdq+n6mjsmke7jJceiZbJCtDHmwaFKsv8jWibW22SOtXp9cdi4HasNJ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="339494914" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="339494914" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 08:01:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="960810065" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="960810065" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 20 Jun 2023 08:01:34 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 20 Jun 2023 08:01:34 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 20 Jun 2023 08:01:34 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 20 Jun 2023 08:01:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DYvKqW6jdkc0X8KhxuZyhjSlKbNm7AGBxwzhzcgB7R4AYcBj4YAv57vviHzciM7Akm8Hc+3QMStCVC4GNPlZwT0L68SfRCB9TjS6T2frVdr4Y6j9YUmV5bkHEJpjJtYINV0upfLOMkdDcaYgwEEmTp43BHmu0NUzTNyN7GkUmFaUv3IMMY4SKoMUoMCPK7o1kzxdfjPcnYJ0m2FYpwH3E8e8AYfhcvIDE9xEsVpUaBxpU16IFszyk4xIFM2OCDgPvYVUvTveDOywE8TEimvSkUxDs/TreW/fUqUf7q4+/+nSmvzPe4iPim0VCtImRyszHWKfvSC3j0C8cFiWJkBC4A== 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=qgwx47tujZ3wJ338Aw49RHLq2j+dXOxcQdFmRmW/JJU=; b=QtJPb7eepJmqvqtOZUNqFAdY5oy8UAa4HbWAAHmxHnH2CbBA5H+/XPbpuelcT2bj4CUX0KJ128Gv+5TWxnToM7+Xuclxhw06dyPPea/tHF8s2QGlOgchtXxBmEF6N9q8m9iFoeF/KnEeitY1Slv39Nt8gDtFd2tWhvokBs0P40+eYy+/aulW2kvSFDcHPEn+lKMvGi5C1D86yDpX7VdmEuN0ROqGMxRddKjjeHfj8FJlx08epGo/gfd7qgwWg11+ZgIPYCSscjrF13KOnrh3tuIbHWBI1e7J+YiS4A8mCGAy7mfAaUqgLV93wAcbDdEGDEetrrQdkq+coWg3GPGC0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SN7PR11MB7567.namprd11.prod.outlook.com (2603:10b6:806:328::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 15:01:32 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::b8f3:958:d2c5:2232]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::b8f3:958:d2c5:2232%3]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 15:01:31 +0000 Date: Tue, 20 Jun 2023 16:01:25 +0100 From: Bruce Richardson To: Thomas Monjalon CC: David Marchand , , Subject: Re: [PATCH v3] build: select optional libraries Message-ID: References: <20211117112847.7362-6-david.marchand@redhat.com> <23115010.6Emhk5qWAg@thomas> Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <23115010.6Emhk5qWAg@thomas> X-ClientProxiedBy: DUZPR01CA0018.eurprd01.prod.exchangelabs.com (2603:10a6:10:46b::6) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SN7PR11MB7567:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bbb6fbc-7fc3-4ee3-ab00-08db719f3b19 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ORWIQuQn70R4A7jXOXEzD8yLHMxHYESskc9tDXlZXdaJLKgZ6c2ndYbi2YvzfCGvPHzke+Gz0euZk5/tTl6gukimNSIBdmIDly0Y29xx50IrutzsKhb4icTvXSS7ERemCP4PTlE0rju118AJb1AZgyX2ZuSv+tyKnP0uWLTQyYq+Yi4O7hRFwKmIsCuCK2XvRhQTiyhOoTrLjAJc14/+b0gQif/tRloPu0efoJCr6ya3uwS9EgkjAUeIun+5Xu4BlTLCW3jSM7wIPmC1PpieGa0yIKqLDTEQRIi+cKvkupz4/IvfuO+go+/Bh5z7uK5YkzaoekQA0gQMLNM42qnMuEGhMtDF9j92j5ieG9km5Jw/uu7UyVaNN7xb+JKNUUi3CU+5StV77d+EcA8Kf+90kckgGhHpqtMJQvPALSA9iLPyjz+CYgFaBz1tHZ1eFBOdYrKA91eQ+dZ7qNgQu7rRTBXVPp3mO3wAdLVGrbqP+gitFOMURipAXZIWHkpPMflEyBiRycg9bFh0vkBUS2ia1CK0c2ay57n3sTGKmGxyNAj1d1D37g0LGsAmWzShAYX5 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(366004)(346002)(136003)(396003)(376002)(39860400002)(451199021)(186003)(6512007)(26005)(53546011)(6506007)(82960400001)(83380400001)(38100700002)(6666004)(478600001)(66556008)(41300700001)(4326008)(66476007)(6916009)(66946007)(8676002)(316002)(8936002)(6486002)(44832011)(86362001)(2906002)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VkQ2UDFFM3dZeVFmTGgzN1VPWm5Tbmk2UzlTN3lZRkZ0dXZLcFpUSzBmRGdX?= =?utf-8?B?aEk5bnQ0clUzOXovRm1mdWFkYXVvYWNOQkt0eXhGR2ZUUUZya3RaZTYyNlNQ?= =?utf-8?B?WE5WNk5KaDJVeUJnRm1ZcDFSREFGaGZvclAwTzRLNldpME1QeUNOclVMOGk2?= =?utf-8?B?T0FGazN0cC9ydzk2VGxrN2pQUU9odzRXWDJCamJpR0h4cTJCVUJvaDZsVXVP?= =?utf-8?B?dWNGTlRQZHVsWUZ6bzJ3VWwxSWhkS3Bxd09VUVZDOGdLejd3a2Q5UTFURG5w?= =?utf-8?B?NGQ3S1dtRW4yZGJ3VHF2NUlnL3BrQ1RRZkF5V2hoOXl1Zy9OSGdhREh6eTUy?= =?utf-8?B?OGpnRWwxUkxpTEUyWVovVjF5Y3hqQWJtZDVlRnZjdmUzVC9YY2VzRFpPU3B1?= =?utf-8?B?ZnlhOFhhcFI2ckJpS0tpcjFLYVU5Tjc5d0VmQkxFYWo4VVhnOE9oQ2VSN0Fh?= =?utf-8?B?TGJSTEJqdG1hOTNjUUJIUUd6SmZISEVOK0xuWnloS29SeThmRHdDbHkxUEZr?= =?utf-8?B?NDBkUThNTTlhM1lNeFFUZkh5bEp3RitMaWZpTEIxajc2N2pHdmQ0Nmh0SG5x?= =?utf-8?B?QlA1U0xhYTNicDZ0KzFpdDJMWEQwb2NMSlFLSSt5N1B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TG1yZHFQeFU5YzkzN1JNdDlhM3RCMnJUR0dY?= =?utf-8?B?RXVveHp4WWhsbGxSUHJyZlQ1Vm84ajkyK1BQL29iUm1raWRKUnQ4WGhzSHU2?= =?utf-8?B?T2xSNUltVVRPTVcxMzhqaWxrbTViSU82K0xtQkozOTdCZlg4ZUZEc0QrRzQz?= =?utf-8?B?R3BBQXJzdUNYbWVWdG02UkNxWno0SDFKSzVsZnVncWJFdW9TNnUrUkpUOVF4?= =?utf-8?B?N0tzMjcxSTdHVW9TVFBuMTRUZlE2UW5ySk5VQlVIb3BOaE0zY3dGbFJXUm51?= =?utf-8?B?b3gvd1c2ZEN6TWF1Y2NVNUhGVEdseGFCQUEzaEFQa2xuUXZhM1NRZGhxNUhq?= =?utf-8?B?L1hxT3g3ZlhMTVg1MTV4emFYT1BWODZ5ZG5YUkpTeVFOdDFsS1ZnU2o4K1BI?= =?utf-8?B?QWlVT2VEWVhOUHJSZlhNcG1GN091UUxJd1dSV2pvTlExQTlMQ09JbGpVcEVD?= =?utf-8?B?QnVCdXd5eHBpNFozVFl1b1QwUkluaHRtMU1Lcmg5RjBkTTZZSDA0bXJmM0J3?= =?utf-8?B?U2pWT1JvZm1pVnFuL0NJL2RDeW0rZERhWnhFUUdzeVUzdjlqTGdEcjZrK1k3?= =?utf-8?B?cnJYaVlDTzBkdFM0TlJoelZBT1l0M0VkL1JXcFhOOFJwZ2dIRytwd1J5emJ1?= =?utf-8?B?Y3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4bbb6fbc-7fc3-4ee3-ab00-08db719f3b19 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 15:01:31.0757 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IvN6T03xJJ5orU+utfVFsqe4ACj4Cy/PaHyhXMc4U//DFB0y3zb3DCbSqaK++sNMNkr4P0Bcv8nY6VDHjlsV8H7jPdcyscODbmRNmwCC/8w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7567 X-OriginatorOrg: intel.com 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 On Tue, Jun 20, 2023 at 04:33:15PM +0200, Thomas Monjalon wrote: > 20/06/2023 11:03, Bruce Richardson: > > On Tue, Jun 20, 2023 at 10:48:50AM +0200, David Marchand wrote: > > > On Tue, Jun 20, 2023 at 10:45 AM Bruce Richardson > > > wrote: > > > > > > > > I notice the change in behaviour for enabling the deprecated libs. Is there > > > > > > > > any other change in behaviour for current users? > > > > > > > > > > > > > > The only change I see, is that this implementation breaks enabling > > > > > > > deprecated libs via disable_libs. > > > > > > > It may break existing developer build directory and maybe some > > > > > > > packaging scripts, this is why I am a bit puzzled. > > > > > > > > > > > > > > Relooking at the disable_libs option current implementation, it seems > > > > > > > backward to pass a disable_libs option when you want to build some > > > > > > > deprecated library. > > > > > > > It is more straightforward to request building libraries via > > > > > > > -Denable_libs= explicitly or -Denable_libs=* > > > > > > > implicitly. > > > > > > > > > > > > > > But again, we may be breaking something for people who relied on this behavior. > > > > > > > > > > > > > > > > > > > That's what I expected, and I think that is ok. I just wanted to check that > > > > > > the change in behaviour was only for the deprecated libs case. > > > > > > > > > > Thomas, wdyt? > > > > > It requires some release note, at least. > > > > > > > > > I am assuming this is not targetting this release though, right? Assuming > > > > 23.11, we can put in a deprecation note informing of the change ahead of > > > > time too. > > > > > > I was hoping to get it in this release. > > > But I am fine with postponing and announcing the change beforehand. > > > > > Given the fact that we are likely changing behaviour, and the fact that the > > deprecated libs makes it more complicated than the drivers one (since we > > have always on, default on and default off cases to consider), I think it's > > best we don't rush this. > > I'm not sure what is the best behaviour. > I tend to think such options should be simple to understand > with only 3 cases: > - no option -> default > - enable option -> only core mandatory and listed libraries > - disable option -> all but the listed libraries > It looks simpler to forbid having both enable and disable libraries. > > Would you be open to change the behaviour of the drivers options? > [reducing CC list a bit] As a further follow-up, I really think we need to move slowly and more carefully on this. While I can see the simplicity in disallowing the two options to be specified, depending on how we go about choosing the enabling of the deprecated libs, we may want to keep support for allowing both. Specifically, my current concern/thinking is: * David points out that using the "disabled_libs" options may not make the most logic sense for *enabling* deprecated libs. * While that is true, I think the usability of enabling them via "enabled_libs" could be pretty terrible - unless we start adding more complications. Specifically, if someone wants to just enable KNI in the build using "enable_libs", specifying "-Denable_libs=kni" will not do what they want - sure it will enable kni, but will disable dozens of other parts of DPDK. * Therefore, I think keeping the disabling of deprecated parts of DPDK via disabled_libs is easier on users - though agreed it is slightly less logical. However, if we forbid using enabled and disabled options together, that would mean that to switch to enabled libs style, the user has to set both enabled libs, *and* clear the default disabled libs option of the deprecated ones. * Therefore, right now I'm tending more towards something like the status quo - disabling deprecated via disable option, but allowing both enable and disable options together. This hasn't caused us issues with drivers thus far, so I'd be hopeful for using it for libs. The other alternative, is we come up with: * another scheme for managing deprecated libs * a special keyword for enabled libs to cover the default case, that one can use to add on the deprecated libs, without having to call out each and every other optional library.