ldp: sid to fd mapper for apps with multiple workers
[vpp.git] / src / vcl / vppcom.c
index f201672..b397058 100644 (file)
@@ -3352,6 +3352,12 @@ vppcom_session_index (uint32_t session_handle)
   return session_handle & 0xFFFFFF;
 }
 
+int
+vppcom_session_handle (uint32_t session_index)
+{
+  return vcl_get_worker_index () << 24 | session_index;
+}
+
 int
 vppcom_worker_register (void)
 {