diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-12-19 12:22:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-12-19 12:22:57 +0000 |
commit | ee4e2645e36a34ee736d320832349bcfa54ab306 (patch) | |
tree | c8708a4b188f39d4ce94d04a0a6810c900864210 /ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c | |
parent | f2ef661f26d13ee55976f1578e5f76f7ddb20df7 (diff) | |
parent | a0f325f0b6ca0129ed339ac4ac94d7159e926977 (diff) |
Merge "[HICN-440] Add comments to hicn sysrepo plugin code"
Diffstat (limited to 'ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c')
-rw-r--r-- | ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c b/ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c index 52ae6ee90..73eab66ea 100644 --- a/ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c +++ b/ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c @@ -18,11 +18,16 @@ #define APP_NAME "hicn_plugin" #define MAX_OUTSTANDING_REQUESTS 4 #define RESPONSE_QUEUE_SIZE 2 -vapi_ctx_t g_vapi_ctx_instance = NULL; -// Use VAPI macros to define symbols + +vapi_ctx_t g_vapi_ctx_instance=NULL; + + + + int hicn_connect_vpp() { + if (g_vapi_ctx_instance == NULL) { vapi_error_e rv = vapi_ctx_alloc(&g_vapi_ctx_instance); rv = vapi_connect(g_vapi_ctx_instance, APP_NAME, NULL, |