From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.228.170]) by dpdk.org (Postfix) with ESMTP id 92F36688E for ; Mon, 23 Nov 2015 00:25:10 +0100 (CET) Received: by mail.mhcomputing.net (Postfix, from userid 1000) id A134117A; Sun, 22 Nov 2015 18:25:09 -0500 (EST) Date: Sun, 22 Nov 2015 18:25:09 -0500 From: Matthew Hall To: Thomas Monjalon Message-ID: <20151122232509.GA27730@mhcomputing.net> References: <20151121084935.GA24056@mhcomputing.net> <2295250.tyqBLnBnCL@xps13> <20151122002518.GA7196@mhcomputing.net> <2764108.ZoWOrsZgTX@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2764108.ZoWOrsZgTX@xps13> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] difficulty w/ RTE_NEXT_ABI X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2015 23:25:10 -0000 On Sun, Nov 22, 2015 at 09:59:30PM +0100, Thomas Monjalon wrote: > > So again I am confused what advantage we got from RTE_NEXT_ABI here, and how > > you have multiple copies of RTE_NEXT_ABI on a single symbol when it is a > > binary variable. > > I don't understand what is not clear here. OK. Let me restate it. I was starting from an assumption that the purpose of RTE_NEXT_ABI was to allow ABI changes. In most projects I worked on, a renaming of a variable when the data type is unchanged does not count as an ABI change. So it seems like this is different from the usual definition. Secondly, if one is making an ABI change, like I was, to some code which was already changed once using RTE_NEXT_ABI, which part of the code do you change? Do you make a third copy different from the first two copies? If you make a third copy, but RTE_NEXT_ABI is binary (i.e. it has two values, on and off) then what labeling do you apply to the third copy? If you don't make a third copy, I am assuming you edit the copy marked with RTE_NEXT_ABI. But then what happens to a downstream user who wants to have RTE_NEXT_ABI with the first ABI change, and not your second ABI change? Can you see what I am trying to ask now? Matthew.