CSIT-844: fix binary api rx pthread heap push/pop 72/8872/3
authorDave Barach <[email protected]>
Wed, 18 Oct 2017 12:03:14 +0000 (08:03 -0400)
committerFlorin Coras <[email protected]>
Wed, 18 Oct 2017 22:24:22 +0000 (22:24 +0000)
commitfb353ce54efc3abf3c2ba7795d0c9bf7aed6df96
tree3dcb4b8967dee2ab8adbfedf1a77c23c3b17fa66
parent7513c8c7d2ed702f346fd707eb2b76fce8657c1d
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.

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...

This patch is a manual cherry-pick from gerrit 8862

Change-Id: If3c84abe61496905432bfa36767068bad4bd243b
Signed-off-by: Dave Barach <[email protected]>
src/vat/main.c
src/vlibmemory/memory_client.c