diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-29 16:07:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-11-29 16:07:18 +0000 |
commit | cab84f5cff3487e9a53093d412b0ec9f09551ff2 (patch) | |
tree | 881d9c8eacf33fab0e51860ad14ade7c0b8b5875 /ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c | |
parent | fbd866f9abc43217f7d214907d784f75f1db6175 (diff) | |
parent | 7981b901c43848d3b923ec49515b28a75ab984e3 (diff) |
Merge "[HICN-403] update vapi communication with vpp"
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, 4 insertions, 5 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 f044c5b1b..e028d7840 100644 --- a/ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c +++ b/ctrl/sysrepo-plugins/hicn-plugin/plugin/hicn_vpp_comm.c @@ -28,22 +28,21 @@ vapi_ctx_t g_vapi_ctx_instance=NULL; int hicn_connect_vpp() { - HICN_INVOKE_BEGIN; + 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, MAX_OUTSTANDING_REQUESTS, RESPONSE_QUEUE_SIZE, VAPI_MODE_BLOCKING, true); if (rv != VAPI_OK) { - HICN_LOG_ERR("*connect %s faild,with return %d", APP_NAME, rv); + SRP_LOG_DBGMSG("Error connection"); vapi_ctx_free(g_vapi_ctx_instance); return -1; } - HICN_LOG_DBG("*connected %s ok", APP_NAME); + SRP_LOG_DBGMSG("*connected ok"); } else { - HICN_LOG_DBG("connection %s keeping", APP_NAME); + SRP_LOG_DBGMSG("connection keeping"); } - HICN_INVOKE_END; return 0; } |