X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvppcom.c;h=b397058052c8f385bd4538ef2f82792d1547efb3;hb=30e273b3055174f0b6fefd240a39fe93253669cd;hp=f20167226e8c23a9b68475cf3da620090a2882aa;hpb=dbc34b89061feae88e0641eab4c82e48903b8396;p=vpp.git diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index f20167226e8..b397058052c 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) {