Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use thread local storage for thread index
[vpp.git]
/
src
/
plugins
/
dpdk
/
main.c
diff --git
a/src/plugins/dpdk/main.c
b/src/plugins/dpdk/main.c
index
8073a50
..
942b8b2
100644
(file)
--- a/
src/plugins/dpdk/main.c
+++ b/
src/plugins/dpdk/main.c
@@
-39,7
+39,7
@@
rte_delay_us_override (unsigned us)
* thread then do not intercept. (Must not be called from an
* independent pthread).
*/
* thread then do not intercept. (Must not be called from an
* independent pthread).
*/
- if (
os_get_cpu_number
() == 0)
+ if (
vlib_get_thread_index
() == 0)
{
/*
* We're in the vlib main thread or a vlib process. Make sure
{
/*
* We're in the vlib main thread or a vlib process. Make sure
@@
-91,5
+91,6
@@
VLIB_INIT_FUNCTION (dpdk_main_init);
/* *INDENT-OFF* */
VLIB_PLUGIN_REGISTER () = {
.version = VPP_BUILD_VER,
/* *INDENT-OFF* */
VLIB_PLUGIN_REGISTER () = {
.version = VPP_BUILD_VER,
+ .description = "Data Plane Development Kit (DPDK)",
};
/* *INDENT-ON* */
};
/* *INDENT-ON* */