vpp_papi: Context_id allocator for running forked. 97/19997/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Thu, 6 Jun 2019 11:06:09 +0000 (07:06 -0400)
committerOle Trøan <otroan@employees.org>
Fri, 7 Jun 2019 09:46:37 +0000 (09:46 +0000)
commit2af6e92b78944879fbb41fd4538be15b97402f88
treeba5612659031af075a64b74a64ab32cb9d3343fb
parent2d7b090fe220d182dc43cccb32b71ca1b55ec9d8
vpp_papi: Context_id allocator for running forked.

When running forked, distinct copies of the 'get_context'
singleton are created for each process.  To run under forked processes,
(as with make test TEST_JOBS=10), we need to use a shared
memory value across the processes.

Type: fix

Change-Id: I9eab8ce46ec23584e5bd651735ad75fd3f018e1a
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vpp-api/python/vpp_papi/tests/test_vpp_papi.py [new file with mode: 0644]
src/vpp-api/python/vpp_papi/vpp_papi.py