Re: [dpdk-dev] [PATCH v2] mempool: check for invalid args on creation

2018-08-05 Thread Thomas Monjalon
02/08/2018 13:10, Andrew Rybchenko: > On 02.08.2018 03:35, Pablo de Lara wrote: > > Currently, a mempool can be created if the number of > > objects is zero. However, in this scenario, > > rte_mempool_create should return NULL, > > as the mempool created is useless otherwise. > > > > Signed-off-by:

Re: [dpdk-dev] [PATCH v2] mempool: check for invalid args on creation

2018-08-02 Thread Andrew Rybchenko
On 02.08.2018 03:35, Pablo de Lara wrote: Currently, a mempool can be created if the number of objects is zero. However, in this scenario, rte_mempool_create should return NULL, as the mempool created is useless otherwise. Signed-off-by: Pablo de Lara Acked-by: Andrew Rybchenko

[dpdk-dev] [PATCH v2] mempool: check for invalid args on creation

2018-08-02 Thread Pablo de Lara
Currently, a mempool can be created if the number of objects is zero. However, in this scenario, rte_mempool_create should return NULL, as the mempool created is useless otherwise. Signed-off-by: Pablo de Lara --- lib/librte_mempool/rte_mempool.c | 6 ++ 1 file changed, 6 insertions(+) diff