VPP-895 multi-thread: fix vpp crash on show runtime 06/7406/4
authorIgor Mikhailov (imichail) <imichail@cisco.com>
Tue, 4 Jul 2017 00:01:50 +0000 (17:01 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 11 Jul 2017 15:35:57 +0000 (15:35 +0000)
commit02989064e4c26a4940a5292ba6c47023e6dd3131
tree498d5f2bb2b54f4be29526349c7369d5f29b60b8
parentd6a11c430b58e76acb7462190eed095820cae008
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>
src/vlib/node.c