CSIT-844: fix binary api rx pthread heap push/pop 62/8862/2
authorDave Barach <dave@barachs.net>
Tue, 17 Oct 2017 15:48:29 +0000 (11:48 -0400)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 18 Oct 2017 11:47:29 +0000 (11:47 +0000)
commitcf5e848d69a4f14464c1e2d56896bc9f7e586951
treecc74c2ba457b03a7dc75fabb1b1304e3e47342f0
parent965fec9089de96c2afbffc3dec3360d043e3eead
CSIT-844: fix binary api rx pthread heap push/pop

We need to push/pop the rx pthread's heap without affecting other
thread(s).

Search clib_per_cpu_mheaps, locate an unused slot. Duplicate the main
thread heap pointer in that slot, and set __os_thread_index
appropriately.

Miscellaneous cleanups. Print exec_inband results as a vector, instead
of as a format string. Don't bail out of vpp_api_test with results
pending, e.g. at the end of a vpp_api_test script. Even though vpp
will eventuallly garbage-collect them, We don't want to leave
allocated reply messages lurking in the api message allocation
rings...

Change-Id: I0e8a25d1ff0d3700249dc330d079db16c2fcbc55
Signed-off-by: Dave Barach <dave@barachs.net>
src/vat/api_format.c
src/vat/main.c
src/vlibmemory/memory_client.c
src/vlibmemory/memory_vlib.c