X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fnode_funcs.h;h=33bdc795816a7e534404d634b14fcf0fd1766585;hb=698eeb126d01427313949241b961c27347db8c72;hp=dfeba17ab09b7287709e7d2f608c92dd76d87b6d;hpb=160a2a9a8c5c4e054dcc0e8ebeb3de7654718582;p=vpp.git diff --git a/src/vlib/node_funcs.h b/src/vlib/node_funcs.h index dfeba17ab09..33bdc795816 100644 --- a/src/vlib/node_funcs.h +++ b/src/vlib/node_funcs.h @@ -455,6 +455,13 @@ vlib_current_process (vlib_main_t * vm) return vlib_get_current_process (vm)->node_runtime.node_index; } +always_inline u32 +vlib_get_current_process_node_index (vlib_main_t * vm) +{ + vlib_process_t *process = vlib_get_current_process (vm); + return process->node_runtime.node_index; +} + /** Returns TRUE if a process suspend time is less than 10us @param dt - remaining poll time in seconds @returns 1 if dt < 10e-6, 0 otherwise