X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvppcom.c;h=589d57c387259d65718d4ccc7e8ed8cf775f0400;hb=dfe4cf48ae344b882f0fd53d08b6917ef4391530;hp=f20167226e8c23a9b68475cf3da620090a2882aa;hpb=c1f5a4336036e3f2d1f6746f39ce610312254272;p=vpp.git diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index f20167226e8..589d57c3872 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -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) { @@ -3360,6 +3366,12 @@ vppcom_worker_register (void) return VPPCOM_EEXIST; } +int +vppcom_worker_index (void) +{ + return vcl_get_worker_index (); +} + /* * fd.io coding-style-patch-verification: ON *