From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH 2/4] rte_ring: store memzone pointer inside ring Date: Tue, 13 Oct 2015 16:29:48 +0200 Message-ID: <561D155C.8080806@6wind.com> References: <1443615142-24381-1-git-send-email-bruce.richardson@intel.com> <1443615142-24381-3-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Bruce Richardson , dev@dpdk.org Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 468608E99 for ; Tue, 13 Oct 2015 16:29:56 +0200 (CEST) In-Reply-To: <1443615142-24381-3-git-send-email-bruce.richardson@intel.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" Hi Bruce, On 09/30/2015 02:12 PM, Bruce Richardson wrote: > Add a new field to the rte_ring structure to store the memzone pointer which > contains the ring. For rings created using rte_ring_create(), the field will > be set automatically. > > This new field will allow users of the ring to query the numa node a ring is > allocated on, or to get the physical address of the ring, if so needed. > > The rte_ring structure will also maintain ABI compatibility, as the > structure members, after the new one, are set to be cache line aligned, > so leaving a space. > > Signed-off-by: Bruce Richardson Acked-by: Olivier Matz