Re: [dpdk-dev] [PATCH v2] mempool: fix non-IO flag inference

2021-10-25 Thread Thomas Monjalon
25/10/2021 15:33, Olivier Matz: > On Sat, Oct 23, 2021 at 12:09:19AM +0300, Dmitry Kozlyuk wrote: > > When mempool had been created with RTE_MEMPOOL_F_NO_IOVA_CONTIG flag > > but later populated with valid IOVA, RTE_MEMPOOL_F_NON_IO was unset, > > while it should be kept. The unit test did not catc

Re: [dpdk-dev] [PATCH v2] mempool: fix non-IO flag inference

2021-10-25 Thread Olivier Matz
On Sat, Oct 23, 2021 at 12:09:19AM +0300, Dmitry Kozlyuk wrote: > When mempool had been created with RTE_MEMPOOL_F_NO_IOVA_CONTIG flag > but later populated with valid IOVA, RTE_MEMPOOL_F_NON_IO was unset, > while it should be kept. The unit test did not catch this > because rte_mempool_populate_de

[dpdk-dev] [PATCH v2] mempool: fix non-IO flag inference

2021-10-22 Thread Dmitry Kozlyuk
When mempool had been created with RTE_MEMPOOL_F_NO_IOVA_CONTIG flag but later populated with valid IOVA, RTE_MEMPOOL_F_NON_IO was unset, while it should be kept. The unit test did not catch this because rte_mempool_populate_default() it used was populating with RTE_BAD_IOVA. Keep setting RTE_MEMP