From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from VI1PR02MB0797.eurprd02.prod.outlook.com (25.162.14.147) by VI1PR02MB0767.eurprd02.prod.outlook.com (25.162.14.141) with Microsoft SMTP Server (TLS) id 15.1.172.22; Wed, 3 Jun 2015 18:36:50 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=cchemparathy@ezchip.com; Received: from cchemparathy-ubuntu (12.218.212.162) by VI1PR02MB0797.eurprd02.prod.outlook.com (25.162.14.147) with Microsoft SMTP Server (TLS) id 15.1.172.22; Wed, 3 Jun 2015 18:36:48 +0000 Date: Wed, 3 Jun 2015 11:36:30 -0700 From: Cyril Chemparathy To: Dax Rawal Message-ID: <20150603113630.06cc7b8c@cchemparathy-ubuntu> In-Reply-To: References: Organization: EZchip X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [12.218.212.162] X-ClientProxiedBy: CO2PR18CA0016.namprd18.prod.outlook.com (25.161.80.26) To VI1PR02MB0797.eurprd02.prod.outlook.com (25.162.14.147) X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB0797; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB0767; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520003)(5005006)(3002001); SRVR:VI1PR02MB0797; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB0797; X-Forefront-PRVS: 05961EBAFC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(24454002)(199003)(64706001)(50226001)(105586002)(122386002)(40100003)(46102003)(47776003)(68736005)(189998001)(23726002)(81156007)(33646002)(5001960100002)(5001830100001)(110136002)(97736004)(50466002)(19580405001)(46406003)(76176999)(87976001)(50986999)(66066001)(62966003)(77156002)(19580395003)(42186005)(101416001)(1411001)(2950100001)(5001860100001)(92566002)(33716001)(86362001)(106356001)(4001540100001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR02MB0797; H:cchemparathy-ubuntu; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: ezchip.com does not designate permitted sender hosts) X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2015 18:36:48.5364 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB0797 X-OriginatorOrg: ezchip.com Cc: dev@dpdk.org Subject: Re: [dpdk-dev] mempool with custom alignment 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: Wed, 03 Jun 2015 18:36:52 -0000 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.