git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: set affinity for control threads
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_lcore.h
diff --git
a/lib/librte_eal/common/include/rte_lcore.h
b/lib/librte_eal/common/include/rte_lcore.h
index
30749d0
..
334a062
100644
(file)
--- a/
lib/librte_eal/common/include/rte_lcore.h
+++ b/
lib/librte_eal/common/include/rte_lcore.h
@@
-279,10
+279,14
@@
int rte_thread_setname(pthread_t id, const char *name);
/**
* Create a control thread.
*
/**
* Create a control thread.
*
- * Wrapper to pthread_create().
+ * Wrapper to pthread_create(), pthread_setname_np() and
+ * pthread_setaffinity_np(). The dataplane and service lcores are
+ * excluded from the affinity of the new thread.
*
* @param thread
* Filled with the thread id of the new created thread.
*
* @param thread
* Filled with the thread id of the new created thread.
+ * @param name
+ * The name of the control thread (max 16 characters including '\0').
* @param attr
* Attributes for the new thread.
* @param start_routine
* @param attr
* Attributes for the new thread.
* @param start_routine
@@
-294,7
+298,8
@@
int rte_thread_setname(pthread_t id, const char *name);
* corresponding to the error number.
*/
__rte_experimental int
* corresponding to the error number.
*/
__rte_experimental int
-rte_ctrl_thread_create(pthread_t *thread, const pthread_attr_t *attr,
+rte_ctrl_thread_create(pthread_t *thread, const char *name,
+ const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg);
/**
void *(*start_routine)(void *), void *arg);
/**