[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-23 Thread Ananyev, Konstantin
> -Original Message- > From: Cyril Chemparathy [mailto:cchemparathy at ezchip.com] > Sent: Tuesday, June 23, 2015 9:43 PM > To: Ananyev, Konstantin > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 08/12] mempool: allow config override on > element alignmen

[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-23 Thread Cyril Chemparathy
On Tue, 23 Jun 2015 00:31:06 + "Ananyev, Konstantin" wrote: > > +#define RTE_MEMPOOL_ALIGN_MASK (RTE_MEMPOOL_ALIGN - 1) > > I am probably a bit late with my comments, but why not make it a > runtime decision then? I know we can't add a new parameter to > mempool_xmem_create() without A

[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-23 Thread Ananyev, Konstantin
Hi Cyril, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cyril Chemparathy > Sent: Monday, June 22, 2015 7:59 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 08/12] mempool: allow config override on > element alignment > >

[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-22 Thread Cyril Chemparathy
On TILE-Gx and TILE-Mx platforms, the buffers fed into the hardware buffer manager require a 128-byte alignment. With this change, we allow configuration based override of the element alignment, and default to RTE_CACHE_LINE_SIZE if left unspecified. Change-Id: I9cd789d92b0bc9c8f44a633de59bb04d45