From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Chemparathy Subject: Re: mempool with custom alignment Date: Wed, 3 Jun 2015 11:36:30 -0700 Message-ID: <20150603113630.06cc7b8c@cchemparathy-ubuntu> References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Dax Rawal Return-path: Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0090.outbound.protection.outlook.com [157.55.234.90]) by dpdk.org (Postfix) with ESMTP id 1941D4A63 for ; Wed, 3 Jun 2015 20:36:52 +0200 (CEST) In-Reply-To: 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 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.