aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README.md5
-rw-r--r--src/scvpp/src/sc_vpp_comm.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 079ba4a..a9849ba 100644
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ install-vpp:
@echo "please install vpp as vpp's guide from source if failed"
ifeq ($(PKG),deb)
# @curl -s https://packagecloud.io/install/repositories/fdio/release/script.deb.sh | sudo bash
- @sudo -E apt-get $(CONFIRM) $(FORCE) install vpp libvppinfra* vpp-plugin-* vpp-dev
+ @sudo -E apt-get $(CONFIRM) $(FORCE) install vpp vpp-lib vpp-plugins vpp-dev
else ifeq ($(PKG),rpm)
# @curl -s https://packagecloud.io/install/repositories/fdio/release/script.rpm.sh | sudo bash
ifeq ($(OS_ID),centos)
diff --git a/README.md b/README.md
index 69d907e..44fb2e8 100644
--- a/README.md
+++ b/README.md
@@ -26,13 +26,16 @@ Details of the changes leading up to this version of Sweetcomb can be found unde
## Getting started
+Make sure you have added FD.io repository using https://packagecloud.io/fdio/release/
+installation script.
+
Firstly, please follow below steps to install dependencies and build code:
cd $/sweetcomb/
make install-dep
make install-dep-extra
make install-vpp
make build-scvpp
- make build
+ make build-plugins
Then, please start each daemon one by one:
start vpp (for example on Ubuntu: systemctl start vpp)
diff --git a/src/scvpp/src/sc_vpp_comm.c b/src/scvpp/src/sc_vpp_comm.c
index 9059ff7..2ebdb7a 100644
--- a/src/scvpp/src/sc_vpp_comm.c
+++ b/src/scvpp/src/sc_vpp_comm.c
@@ -31,8 +31,9 @@ int sc_connect_vpp()
rv = vapi_connect(g_vapi_ctx_instance, APP_NAME, NULL, MAX_OUTSTANDING_REQUESTS, RESPONSE_QUEUE_SIZE, VAPI_MODE_BLOCKING, true);
if (rv != VAPI_OK)
{
- SC_LOG_ERR("*connect %s faild,with return %d", APP_NAME, rv);
+ SC_LOG_ERR("*connect %s failed with error code %d", APP_NAME, rv);
vapi_ctx_free(g_vapi_ctx_instance);
+ g_vapi_ctx_instance = NULL;
return -1;
}
SC_LOG_DBG("*connected %s ok", APP_NAME);