X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcl_private.h;h=fd9d73c35470904777c54dce6669da3b7338a064;hb=9ace36d0f9b04e2d4db410607ee33a8e72ef00c5;hp=9116111afe2918debced1a5196c740c2448b3ec5;hpb=d4c709222b67f6c45ee7064637f69de9e9509222;p=vpp.git diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h index 9116111afe2..fd9d73c3547 100644 --- a/src/vcl/vcl_private.h +++ b/src/vcl/vcl_private.h @@ -375,6 +375,7 @@ vcl_session_alloc (vcl_worker_t * wrk) static inline void vcl_session_free (vcl_worker_t * wrk, vcl_session_t * s) { + VDBG (0, "session %u [0x%llx] removed", s->session_index, s->vpp_handle); pool_put (wrk->sessions, s); } @@ -517,6 +518,14 @@ vcl_session_is_ct (vcl_session_t * s) return (s->ct_tx_fifo != 0); } +static inline u8 +vcl_session_is_cl (vcl_session_t * s) +{ + if (s->session_type == VPPCOM_PROTO_UDP) + return 1; + return 0; +} + static inline u8 vcl_session_is_open (vcl_session_t * s) { @@ -626,6 +635,10 @@ void vppcom_send_application_tls_key_add (vcl_session_t * session, char *key, void vcl_send_app_worker_add_del (u8 is_add); void vcl_send_child_worker_del (vcl_worker_t * wrk); +int vcl_segment_attach (u64 segment_handle, char *name, + ssvm_segment_type_t type, int fd); +void vcl_segment_detach (u64 segment_handle); + u32 vcl_max_nsid_len (void); u8 *format_api_error (u8 * s, va_list * args);