From 30e79c2e388a98160a3660f4f03103890c9b1b7c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 2 Jan 2019 19:31:22 -0800 Subject: vcl/session: add api for changing session app worker In case of multi process apps, after forking, the parent may decide to close part or all of the sessions it shares with the child. Because the sessions have fifos allocated in the parent's segment manager, they must be moved to the child's segment manager. Change-Id: I85b4c8c8545005724023ee14043647719cef61dd Signed-off-by: Florin Coras --- src/vcl/vcl_bapi.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/vcl/vcl_bapi.c') diff --git a/src/vcl/vcl_bapi.c b/src/vcl/vcl_bapi.c index de5e80a55b3..5b9a9d5d3ce 100644 --- a/src/vcl/vcl_bapi.c +++ b/src/vcl/vcl_bapi.c @@ -609,21 +609,6 @@ vppcom_send_unbind_sock (u64 vpp_handle) vl_msg_api_send_shmem (wrk->vl_input_queue, (u8 *) & ump); } -void -vppcom_send_accept_session_reply (u64 handle, u32 context, int retval) -{ - vcl_worker_t *wrk = vcl_worker_get_current (); - vl_api_accept_session_reply_t *rmp; - - rmp = vl_msg_api_alloc (sizeof (*rmp)); - memset (rmp, 0, sizeof (*rmp)); - rmp->_vl_msg_id = ntohs (VL_API_ACCEPT_SESSION_REPLY); - rmp->retval = htonl (retval); - rmp->context = context; - rmp->handle = handle; - vl_msg_api_send_shmem (wrk->vl_input_queue, (u8 *) & rmp); -} - void vppcom_send_application_tls_cert_add (vcl_session_t * session, char *cert, u32 cert_len) -- cgit 1.2.3-korg