summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vppcom.c6
-rw-r--r--src/vcl/vppcom.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index a50d0abf2f4..0b61c5eb304 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -3635,6 +3635,12 @@ vppcom_worker_unregister (void)
vcl_set_worker_index (~0);
}
+void
+vppcom_worker_index_set (int index)
+{
+ vcl_set_worker_index (index);
+}
+
int
vppcom_worker_index (void)
{
diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h
index 62613037575..771443021b3 100644
--- a/src/vcl/vppcom.h
+++ b/src/vcl/vppcom.h
@@ -334,6 +334,11 @@ extern void vppcom_worker_unregister (void);
extern int vppcom_worker_index (void);
/**
+ * Set current worker index
+ */
+extern void vppcom_worker_index_set (int);
+
+/**
* Returns the current worker's message queues epoll fd
*
* This only works if vcl is configured to do eventfd based message queue