All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mempool: remove non-EAL thread note from header
@ 2017-03-21  2:34 Gage Eads
  2017-03-22 17:04 ` [PATCH v2] " Gage Eads
  0 siblings, 1 reply; 9+ messages in thread
From: Gage Eads @ 2017-03-21  2:34 UTC (permalink / raw)
  To: dev; +Cc: olivier.matz

Commit 4b5062755aa7 ("mempool: allow user-owned cache") added the
capability for non-EAL threads to use the mempool library by checking
rte_lcore_id() before accessing the per-lcore cache. This commit
removes the note indicating that the mempool library cannot be used
safely by non-EAL threads.

Also, fix a typo.

Signed-off-by: Gage Eads <gage.eads@intel.com>
---
 lib/librte_mempool/rte_mempool.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h
index 991feaa..b1186fd 100644
--- a/lib/librte_mempool/rte_mempool.h
+++ b/lib/librte_mempool/rte_mempool.h
@@ -53,11 +53,7 @@
  *
  * Note: the mempool implementation is not preemptable. A lcore must
  * not be interrupted by another task that uses the same mempool
- * (because it uses a ring which is not preemptable). Also, mempool
- * functions must not be used outside the DPDK environment: for
- * example, in linuxapp environment, a thread that is not created by
- * the EAL must not use mempools. This is due to the per-lcore cache
- * that won't work as rte_lcore_id() will not return a correct value.
+ * (because it uses a ring which is not preemptible).
  */
 
 #include <stdio.h>
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-04-03 16:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-21  2:34 [PATCH] mempool: remove non-EAL thread note from header Gage Eads
2017-03-22 17:04 ` [PATCH v2] " Gage Eads
2017-03-23 14:20   ` [PATCH v3] " Gage Eads
2017-03-24 14:04     ` Olivier Matz
2017-03-29 15:30       ` Eads, Gage
2017-03-30 15:12         ` Olivier Matz
2017-03-30 23:02     ` [PATCH v4] mempool: update non-EAL thread note in the header Gage Eads
2017-03-31 13:51       ` Olivier Matz
2017-04-03 16:32         ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.