X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvppcom.h;h=00527f4ecfbaf75c6fcc5d62986fcb67b492f8b3;hb=b0f662fe93f1db0098f7b50306c2f084644788b1;hp=5085e950af46f15cbfd17a8f22b3419cc9dae1fe;hpb=30e273b3055174f0b6fefd240a39fe93253669cd;p=vpp.git diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index 5085e950af4..00527f4ecfb 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -137,6 +137,7 @@ typedef enum VPPCOM_ATTR_SET_TCP_KEEPINTVL, VPPCOM_ATTR_GET_TCP_USER_MSS, VPPCOM_ATTR_SET_TCP_USER_MSS, + VPPCOM_ATTR_GET_REFCNT, } vppcom_attr_op_t; typedef struct _vcl_poll @@ -238,6 +239,8 @@ extern int vppcom_session_connect (uint32_t session_handle, extern int vppcom_session_read (uint32_t session_handle, void *buf, size_t n); extern int vppcom_session_write (uint32_t session_handle, void *buf, size_t n); +extern int vppcom_session_write_msg (uint32_t session_handle, void *buf, + size_t n); extern int vppcom_select (unsigned long n_bits, unsigned long *read_map, @@ -279,6 +282,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 }