From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4877A04B5; Wed, 30 Sep 2020 18:19:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A83AC1D673; Wed, 30 Sep 2020 18:19:58 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AC24F1D629 for ; Wed, 30 Sep 2020 18:19:55 +0200 (CEST) IronPort-SDR: EdIA8o43rJ08T6GekpmRe3UGmboZdI78vIKnq7MdjlBvPDJgQKQx0Se87UFzcufaIVmJGw/Qqg UzRBbd6HuaOg== X-IronPort-AV: E=McAfee;i="6000,8403,9760"; a="180645616" X-IronPort-AV: E=Sophos;i="5.77,322,1596524400"; d="scan'208";a="180645616" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2020 09:19:53 -0700 IronPort-SDR: gyqtkfqyoQFrG81RscfAeI/3UHqE83P07olGFeybR9AVkC/rcp2Mz5taVDqpLQTmUNagCD0YnV fNWnwxn/znFA== X-IronPort-AV: E=Sophos;i="5.77,322,1596524400"; d="scan'208";a="498225774" Received: from bricha3-mobl.ger.corp.intel.com ([10.213.29.17]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 30 Sep 2020 09:19:51 -0700 Date: Wed, 30 Sep 2020 17:19:47 +0100 From: Bruce Richardson To: Ferruh Yigit Cc: david.marchand@redhat.com, dev@dpdk.org Message-ID: <20200930161947.GB977@bricha3-MOBL.ger.corp.intel.com> References: <20200916164429.244847-1-bruce.richardson@intel.com> <4d0ad859-a0bc-7a75-ef1c-fa5c794a07d8@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4d0ad859-a0bc-7a75-ef1c-fa5c794a07d8@intel.com> Subject: Re: [dpdk-dev] [RFC PATCH 0/5] rework feature enabling macros for compatibility X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Sep 30, 2020 at 05:12:50PM +0100, Ferruh Yigit wrote: > On 9/16/2020 5:44 PM, Bruce Richardson wrote: > > As flagged previously on-list, there are a number of macros used to specify > > what libs and drivers are enabled in the build which differ from the > > equivalents used with make. This patchset is one possible approach to > > fixing these, but as part of the investigation some issues were hit where > > I'd like additional input to ensure we are ok with the approach taken in > > this set. > > > > First, a problem statement: > > > > * While the make build defines generally followed a pattern, there were > > many instances where the defines were unique. These can be seen in the > > values defined in patch 4. > > > > * The NIC PMDs had two separate standards for the defines - some (the > > physical device drivers) tended to have the _PMD at the end of the > > macros, while the virtual drivers had it in the middle. Since the > > majority seemed to go with it at the end, meson chose this option. > > However, as can be seen from patch 4, a number now need special handling > > for compatibility > > +1 to all X_PMD macros. > > > > > * This "_PMD" at the end made its way into other device classes, such as > > crypto and event, but it appears that the standard for these classes from > > make is in fact the opposite. Therefore we have had for the last 2+ years > > conflicting macros for crypto, compression and event classes. > > > > * There is also the question of how important compatibility for these > > macros is, especially since we have had numerous incompatibilities > > without it being reported before. There is also the issue of the > > deprecation process for macros, since these are not part of any ABI. > > > > What's done in this set: > > > > * Firstly, and missing dependencies on apps or examples had to be fixed, > > where a dependency was missed because it was never needed due to the code > > being stripped out because of a missing macro. > > > > * Secondly, since it is likely that use of the defines from make is more > > widespread than those from meson, the defines for the crypto, compression > > and event classes are changed to align with the make values. Just in case > > though, temporary code is added to drivers/meson.build to redefine the > > old meson values too, and a deprecation notice is added for these. The > > hope is that we can then remove this temporary code in the next release, > > leaving us with just one macro style for each driver class. > > > > * Thirdly, we add an additional set of backward compatibility macros for > > the ~30 special-cases, where the meson macro template does not match that > > defined for make. Again, this is intended to be temporary and a > > deprecation notice is given for the macros in that file. > > > > Why we need this backward compatibility? The macros are to enable/disable a > module, so isn't it DPDK internal. > If we enable the macros for new naming convention and update the build > system and code for new macros, will it affect the end user? > I'd love to be able to just take this option, but the macros are used to indicate to applications what drivers or other components can be expected to be available - much as the case for testpmd. Ideally, they should not be necessary. I think the best approach is that proposed earlier on this thread - we keep backward compatibility as much as possible in this release, but add in a new set of standardized macros and a deprecation notice about the old ones. I hope to work on a new rev of this patchset shortly. /Bruce