b3ddd649 | 22-Aug-2023 |
Ashwin Sekhar T K <asekhar@marvell.com> |
mempool/cnxk: fix alloc from non-EAL threads
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,
mempool/cnxk: fix alloc from non-EAL threads
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") Cc: stable@dpdk.org
Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
show more ...
|
e97668dd | 22-Aug-2023 |
Harman Kalra <hkalra@marvell.com> |
mempool/cnxk: fix free from non-EAL threads
For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch free cannot be used as those threads won't have dedicated lmtlines. So, fallback to bulk
mempool/cnxk: fix free from non-EAL threads
For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch free cannot be used as those threads won't have dedicated lmtlines. So, fallback to bulk alloc in such cases.
Fixes: ecbc731a2286 ("mempool/cnxk: add cn10k batch enqueue") Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com> Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
show more ...
|
5e70ff92 | 23-May-2023 |
Ashwin Sekhar T K <asekhar@marvell.com> |
mempool/cnxk: add HW pool operations
Add hwpool ops which can used to create a rte_mempool that attaches to another rte_mempool. The hwpool will not have its own buffers and will have a dummy popula
mempool/cnxk: add HW pool operations
Add hwpool ops which can used to create a rte_mempool that attaches to another rte_mempool. The hwpool will not have its own buffers and will have a dummy populate callback. Only an NPA aura will be allocated for this rte_mempool. The buffers will be allocate from the NPA pool of the attached rte_mempool.
Only mbuf objects are supported in hwpool. Generic objects are not supported. Note that this pool will not have any range check enabled. So user will be able to free any pointer into this pool. HW will not throw error interrupts if invalid buffers are passed. So user must be careful when using this pool.
Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
show more ...
|