From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Subject: Re: DPDK namespace Date: Thu, 7 Apr 2016 10:22:50 +0200 Message-ID: References: <1610488.T03Kyi0Reo@xps13> <348A99DA5F5B7549AA880327E580B43588FC621D@IRSMSX101.ger.corp.intel.com> <20160406052656.GT3080@yliu-dev.sh.intel.com> <5704FC10.8020405@redhat.com> <57056FD8.70602@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Panu Matilainen , Yuanhan Liu , Arnon Warshavsky , "Trahe, Fiona" , Thomas Monjalon , "dev@dpdk.org" To: Dave Neary Return-path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id 76D2311C5 for ; Thu, 7 Apr 2016 10:23:10 +0200 (CEST) Received: by mail-lf0-f66.google.com with SMTP id t203so3580214lfd.0 for ; Thu, 07 Apr 2016 01:23:10 -0700 (PDT) In-Reply-To: <57056FD8.70602@redhat.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 6 April 2016 at 22:21, Dave Neary wrote: > Hi, > > On 04/06/2016 08:07 AM, Panu Matilainen wrote: > >> +1: it's a bit weird to keep both, especially for a long while, that > >> every time we turn a rte_ prefix to dpdk_ prefix, we break applications. > >> Instead of breaking applications many times, I'd prefer to break once. > >> Therefore, applications could do a simple global rte_ -> dpdk_ > >> substitute: > >> it doesn't sound that painful then. > +1 Either all types and symbols use dpdk_ or rte_. It probably makes more sense dpdk_, but to me it is not that important. If it has to be changed, it might be a good idea to do it in this release, now that version numbering format also changes. > > > I concur. If (and I think that should be a pretty big IF) the prefix is > > to be changed then its better done in one fast sweep than gradually. > > > > Gratuitious (or nearly so) change is always extremely annoying, and the > > longer it takes the more painful it is. Application developers wont much > > care what the prefix is as long as its consistent, but if they're forced > > to track prefix changes across several releases with different libraries > > moving at different pace, they WILL be calling for bloody murder :) > > How about the idea of creating (at switch over time) an optionally > installable dpdk_compat package that just has a list of #defines for the > old symbols pointing them at the new symbols? That would also allow > people with old applications to update DPDK without having to modify > their applications. > You would also have to add all typedefs for type names. Why bothering? Moving from 2.2 to 16.04 requires recompiling your application (ABI changes), and is as simple as sed -e 's/rte_/dpdk_/g' in all the application code base. Marc > > Thanks, > Dave. > > -- > Dave Neary - NFV/SDN Community Strategy > Open Source and Standards, Red Hat - http://community.redhat.com > Ph: +1-978-399-2182 / Cell: +1-978-799-3338 >