[HICN-488] Adding lock to vapi calls and manage vapi_connect in order to connect... 45/24545/5
authorAlberto Compagno <acompagn+fdio@cisco.com>
Mon, 27 Jan 2020 15:04:33 +0000 (16:04 +0100)
committerAlberto Compagno <acompagn+fdio@cisco.com>
Mon, 27 Jan 2020 15:56:28 +0000 (16:56 +0100)
commitb0768b35fb515b7c0a15c3c7d8c1227497c59786
tree1e2b1318f680fffd555ddc26a48e4a4156b06dfc
parentbe54ac541c9700eaa9085bc8b4ee21b7a5f7e30a
[HICN-488] Adding lock to vapi calls and manage vapi_connect in order to connect only once.

- Added library to hicn-plugin called safe_vapi that takes care of handling concurrent calls to the vapi.
- Removed dependency of libhicnctrl from libtransport and added dependency to safe_vapi.
- Added dependency to safe_vapi on libhicnctrl

Change-Id: Ie49e8319f64a50e7ed6a56e041db977c3b184cc5
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
13 files changed:
cmake/Modules/FindSafeVapi.cmake [new file with mode: 0644]
ctrl/libhicnctrl/CMakeLists.txt
ctrl/libhicnctrl/src/hicn_plugin_api.c
hicn-plugin/CMakeLists.txt
hicn-plugin/src/CMakeLists.txt [new file with mode: 0644]
hicn-plugin/vapi/CMakeLists.txt [new file with mode: 0644]
hicn-plugin/vapi/include/vapi/vapi_safe.h [new file with mode: 0644]
hicn-plugin/vapi/vapi_safe.c [new file with mode: 0644]
libtransport/CMakeLists.txt
libtransport/src/hicn/transport/core/hicn_vapi.c
libtransport/src/hicn/transport/core/memif_vapi.c
libtransport/src/hicn/transport/core/vpp_forwarder_interface.cc
libtransport/src/hicn/transport/core/vpp_forwarder_interface.h