[dpdk-dev] [PATCH] mempool: fix the inverted pg_num check on create

2015-08-16 Thread Dan Aloni
The rest of the code expects pg_num <= RTE_DIM(mp->elt_pa). Signed-off-by: Dan Aloni --- lib/librte_mempool/rte_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 8e185c545479..edcfa8bf9cb1 10064

[dpdk-dev] [PATCH] mempool: fix the inverted pg_num check on create

2015-08-17 Thread Olivier MATZ
Hi, On 08/16/2015 09:08 PM, Dan Aloni wrote: > The rest of the code expects pg_num <= RTE_DIM(mp->elt_pa). > > Signed-off-by: Dan Aloni > --- > lib/librte_mempool/rte_mempool.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_mempool/rte_mempool.c > b/lib/li

[dpdk-dev] [PATCH] mempool: fix the inverted pg_num check on create

2015-08-17 Thread Dan Aloni
On Mon, Aug 17, 2015 at 10:55:35AM +0200, Olivier MATZ wrote: > On 08/16/2015 09:08 PM, Dan Aloni wrote: [..] > > /* Check that pg_num and pg_shift parameters are valid. */ > > - if (pg_num < RTE_DIM(mp->elt_pa) || pg_shift > MEMPOOL_PG_SHIFT_MAX) { > > + if (pg_num > RTE_DIM(mp->elt_pa) ||