From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dax Rawal Subject: Re: mempool with custom alignment Date: Wed, 3 Jun 2015 11:58:41 -0700 Message-ID: References: <20150603113630.06cc7b8c@cchemparathy-ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: dev@dpdk.org To: Cyril Chemparathy Return-path: Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 7FA63BDC2 for ; Wed, 3 Jun 2015 20:58:41 +0200 (CEST) Received: by wgez8 with SMTP id z8so16897297wge.0 for ; Wed, 03 Jun 2015 11:58:41 -0700 (PDT) In-Reply-To: <20150603113630.06cc7b8c@cchemparathy-ubuntu> 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 Cyril, Definitely, yes. Thanks. -Dax On Wed, Jun 3, 2015 at 11:36 AM, Cyril Chemparathy wrote: > On Wed, 3 Jun 2015 11:30:17 -0700 > Hi Dax, > > Dax Rawal wrote: > > > Hi, > > I use mempool APIs to allocate DMA-able descriptor ring and buffers > > so that I get both physical and virtual addresses of allocated > > memory. I buffers I get from the mempool APIs are 64 byte aligned. My > > requirement is 256byte alignment. How to achieve this? mempool APIs > > do not seem to take alignment parameters. > > > > I have a patch that allows configuration override of mempool element > alignment to allow for larger alignment limits (e.g. 128B on the > TILE-Gx platform, 256B on yours). Would that suffice? If so, I'd be > happy to post this patch on the mailing list. > > Thanks > -- Cyril. >