X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fdpdk%2Fmain.c;h=942b8b2d4662b106083b7209b76e2dc4e51fded4;hb=586afd762bfa149f5ca167bd5fd5a0cd59ce94fe;hp=7ee2a785ee60211f064bab053d146cd390e75f62;hpb=bc799c92d761a2d45105aa6a1685b3663687d2a4;p=vpp.git diff --git a/src/plugins/dpdk/main.c b/src/plugins/dpdk/main.c index 7ee2a785ee6..942b8b2d466 100644 --- 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). */ - 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