Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
thread: Add show threads api
[vpp.git]
/
src
/
vlib
/
node_cli.c
diff --git
a/src/vlib/node_cli.c
b/src/vlib/node_cli.c
index
95f0fab
..
00199d9
100644
(file)
--- a/
src/vlib/node_cli.c
+++ b/
src/vlib/node_cli.c
@@
-345,9
+345,9
@@
show_node_runtime (vlib_main_t * vm,
if (j > 0)
vlib_cli_output (vm, "---------------");
if (j > 0)
vlib_cli_output (vm, "---------------");
- if (w->
lcore
_id > -1)
+ if (w->
cpu
_id > -1)
vlib_cli_output (vm, "Thread %d %s (lcore %u)", j, w->name,
vlib_cli_output (vm, "Thread %d %s (lcore %u)", j, w->name,
- w->
lcore
_id);
+ w->
cpu
_id);
else
vlib_cli_output (vm, "Thread %d %s", j, w->name);
}
else
vlib_cli_output (vm, "Thread %d %s", j, w->name);
}
@@
-526,7
+526,7
@@
show_node (vlib_main_t * vm, unformat_input_t * input,
}
}
else
}
}
else
- s = format (s, "\n defult only");
+ s = format (s, "\n def
a
ult only");
vlib_cli_output (vm, " node function variants:%v\n", s);
vec_reset_length (s);
vlib_cli_output (vm, " node function variants:%v\n", s);
vec_reset_length (s);
@@
-604,7
+604,7
@@
set_node_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd
if (!unformat (line_input, "%s", &variant))
{
if (!unformat (line_input, "%s", &variant))
{
- err = clib_error_return (0, "please specify node function variant");
+ err = clib_error_return (0, "please specify node function
al
variant");
goto done;
}
goto done;
}
@@
-612,7
+612,7
@@
set_node_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd
if (n->node_fn_registrations == 0)
{
if (n->node_fn_registrations == 0)
{
- err = clib_error_return (0, "node doesn't have f
nuctiona varina
ts");
+ err = clib_error_return (0, "node doesn't have f
unctional varian
ts");
goto done;
}
goto done;
}
@@
-638,7
+638,7
@@
set_node_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd
fnr = fnr->next_registration;
}
fnr = fnr->next_registration;
}
- err = clib_error_return (0, "node f
nuction
variant '%s' not found", variant);
+ err = clib_error_return (0, "node f
unctional
variant '%s' not found", variant);
done:
vec_free (variant);
done:
vec_free (variant);