[PATCH 2/2] mempool/cnxk: fix alloc from non-EAL pthreads

2023-07-30 Thread Ashwin Sekhar T K
For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch allocation cannot be used as we won't have a dedicated alloc buffer for the thread. So, fallback to bulk alloc in such cases. Fixes: 91531e63f43b ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: Ashwin Sekhar T K --- driv

Re: [PATCH 2/2] mempool/cnxk: fix alloc from non-EAL pthreads

2023-08-18 Thread Jerin Jacob
On Mon, Jul 31, 2023 at 11:25 AM Ashwin Sekhar T K wrote: > > For non-EAL pthreads, rte_lcore_id() will not be valid. > So, batch allocation cannot be used as we won't have a > dedicated alloc buffer for the thread. So, fallback to > bulk alloc in such cases. > > Fixes: 91531e63f43b ("mempool/cnxk