VPP-895 multi-thread: fix vpp crash on show runtime 23/7523/2
authorIgor Mikhailov (imichail) <imichail@cisco.com>
Tue, 4 Jul 2017 00:01:50 +0000 (17:01 -0700)
committerNeale Ranns <nranns@cisco.com>
Thu, 13 Jul 2017 22:17:53 +0000 (22:17 +0000)
commit19e9d954bd9eb4f04d48640d6540198e84ef65d7
treef250d04c9d7986851f9c1f5169ae49877306d3a6
parenta2522f6fd57eb93f57dfcc27c59862d4cc32879a
VPP-895 multi-thread: fix vpp crash on show runtime

In multi-threaded model (e.g. 1 main and 1 worker threads),
after an ethernet interface is deleted (e.g. vhost-user interface),
'show runtime' command produces garbled output and sometimes
leads to vpp crash.

The reason is because vlib_node_rename() frees and reallocates node's
'n->name' vector, however the change is not propagated into copies
of the node on worker threads.

Change-Id: Ibf22422913b7f2df22f70f3b2fe8dafd34c1dd06
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
(cherry picked from commit 02989064e4c26a4940a5292ba6c47023e6dd3131)
src/vlib/node.c