From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id CA7025938 for ; Mon, 15 Feb 2016 11:15:30 +0100 (CET) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1aVGD4-0003LJ-A4; Mon, 15 Feb 2016 11:16:50 +0100 To: "Hunt, David" , Thomas Monjalon , "Wiles, Keith" References: <1455039006-86816-1-git-send-email-keith.wiles@intel.com> <56BDEA08.9040402@redhat.com> <09D5A01F-7205-49E8-9A27-95161235963E@intel.com> <10558998.3znIRhOpQL@xps13> <56BDFF2B.5090401@6wind.com> <56C1A15C.8060603@intel.com> From: Olivier MATZ Message-ID: <56C1A53A.8010607@6wind.com> Date: Mon, 15 Feb 2016 11:15:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.3.0 MIME-Version: 1.0 In-Reply-To: <56C1A15C.8060603@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3] mempool: reduce rte_mempool structure size 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: Mon, 15 Feb 2016 10:15:30 -0000 Hi David, On 02/15/2016 10:58 AM, Hunt, David wrote: > On 12/02/2016 15:50, Olivier MATZ wrote: >> - NEXT_ABI does make the code harder to read in this case, and I'm >> thinking about the patchset from David Hunt (external mempool handler) >> that will be in the same situation, and maybe also another patchset >> I'm working on. > > Olivier, > I'm working on that at the moment with the external mempool handler > code. However, it crossed my mind that we have a choice to use symbol > versioning OR use NEXT_ABI. Would one method be preferred over the other? I think symbol versioning should always be preferred when possible. In your case, as far as I remember, your are updating the rte_mempool structure, which is accessed by static inline functions. I don't think it is easily manageable with symbol versioning. Moreover, the ABI will already be broken by Keith's patch, so I think it's less problematic to have other patches breaking the ABI at the same time. Regards, Olivier