summaryrefslogtreecommitdiffstats
path: root/src/vcl/vppcom.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-11-28 22:13:45 -0800
committerOle Trøan <otroan@employees.org>2018-11-29 08:43:16 +0000
commitdfe4cf48ae344b882f0fd53d08b6917ef4391530 (patch)
tree4182aae3e95bd881340ab1de1267615548df6a44 /src/vcl/vppcom.h
parent8be6c40cf39f0d637a9dbfaa40ccec1d72bff34a (diff)
ldp: basic multiworker support
Change-Id: Ia794fa7e15dac02c8607c4cee2f119ad9815c0a8 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vppcom.h')
-rw-r--r--src/vcl/vppcom.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h
index 5085e950af4..0c0b7ce45fd 100644
--- a/src/vcl/vppcom.h
+++ b/src/vcl/vppcom.h
@@ -279,6 +279,11 @@ extern int vppcom_data_segment_copy (void *buf, vppcom_data_segments_t ds,
*/
extern int vppcom_worker_register (void);
+/**
+ * Retrieve current worker index
+ */
+extern int vppcom_worker_index (void);
+
/* *INDENT-OFF* */
#ifdef __cplusplus
}