DPDK patches and discussions
 help / color / mirror / Atom feed
From: Cyril Chemparathy <cchemparathy@ezchip.com>
To: Dax Rawal <daxayrawal@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] mempool with custom alignment
Date: Wed, 3 Jun 2015 11:36:30 -0700	[thread overview]
Message-ID: <20150603113630.06cc7b8c@cchemparathy-ubuntu> (raw)
In-Reply-To: <CAD6B5uUNqiD18LJQXDaA9FaOhJTepjF4woZFTM34R6FjSPLxEw@mail.gmail.com>

On Wed, 3 Jun 2015 11:30:17 -0700
Hi Dax,

Dax Rawal <daxayrawal@gmail.com> 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.

  reply	other threads:[~2015-06-03 18:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 18:30 Dax Rawal
2015-06-03 18:36 ` Cyril Chemparathy [this message]
2015-06-03 18:58   ` Dax Rawal
2015-06-04  8:45 ` Ananyev, Konstantin
2015-06-04 17:28   ` Dax Rawal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150603113630.06cc7b8c@cchemparathy-ubuntu \
    --to=cchemparathy@ezchip.com \
    --cc=daxayrawal@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).