summaryrefslogtreecommitdiffstats
path: root/src/vcl/vppcom.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-08 12:34:45 -0700
committerDave Barach <openvpp@barachs.net>2019-07-08 21:42:37 +0000
commit369db83f91a411977015748a74c5a4579170a16c (patch)
treedd597d101f1586c77d7aa400dc270135edb090d1 /src/vcl/vppcom.c
parentaaff5eefb1dddf3ea71e3258b362d6516350303e (diff)
vcl: add worker unregister api
Type:feature Change-Id: Ie73644aed94e58d5dce822de5000183e414401df Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r--src/vcl/vppcom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 3d08d395a27..dcbbfc44a39 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -3357,6 +3357,13 @@ vppcom_worker_register (void)
return VPPCOM_OK;
}
+void
+vppcom_worker_unregister (void)
+{
+ vcl_worker_cleanup (vcl_worker_get_current (), 1 /* notify vpp */ );
+ vcl_set_worker_index (~0);
+}
+
int
vppcom_worker_index (void)
{