Re: [dpdk-dev] [PATCH 3/4] mempool: introduce block size align flag

2017-07-10 Thread santosh
On Monday 10 July 2017 06:45 PM, Olivier Matz wrote: > On Wed, 5 Jul 2017 13:05:57 +0530, santosh > wrote: >> Hi Olivier, >> >> On Monday 03 July 2017 10:07 PM, Olivier Matz wrote: >> >>> On Wed, 21 Jun 2017 17:32:47 +, Santosh Shukla >>> wrote: Some mempool hw like octeontx/fpa blo

Re: [dpdk-dev] [PATCH 3/4] mempool: introduce block size align flag

2017-07-10 Thread Olivier Matz
On Wed, 5 Jul 2017 13:05:57 +0530, santosh wrote: > Hi Olivier, > > On Monday 03 July 2017 10:07 PM, Olivier Matz wrote: > > > On Wed, 21 Jun 2017 17:32:47 +, Santosh Shukla > > wrote: > >> Some mempool hw like octeontx/fpa block, demands block size aligned > >> buffer address. > >> >

Re: [dpdk-dev] [PATCH 3/4] mempool: introduce block size align flag

2017-07-05 Thread santosh
Hi Olivier, On Monday 03 July 2017 10:07 PM, Olivier Matz wrote: > On Wed, 21 Jun 2017 17:32:47 +, Santosh Shukla > wrote: >> Some mempool hw like octeontx/fpa block, demands block size aligned >> buffer address. >> > What is the meaning of block size aligned? block size is total_elem_sz.

Re: [dpdk-dev] [PATCH 3/4] mempool: introduce block size align flag

2017-07-03 Thread Olivier Matz
On Wed, 21 Jun 2017 17:32:47 +, Santosh Shukla wrote: > Some mempool hw like octeontx/fpa block, demands block size aligned > buffer address. > What is the meaning of block size aligned? Does it mean that the address has to be a multiple of total_elt_size? Is this constraint on the virtua

[dpdk-dev] [PATCH 3/4] mempool: introduce block size align flag

2017-06-21 Thread Santosh Shukla
Some mempool hw like octeontx/fpa block, demands block size aligned buffer address. Introducing an MEMPOOL_F_POOL_BLK_SZ_ALIGNED flag. If this flag is set: 1) adjust 'off' value to block size aligned value. 2) Allocate one additional buffer. This buffer is used to make sure that requested 'n' buff