From 41d5f541d37dc564565b3b29eb370b65bb5a9036 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 15 Jan 2021 13:49:33 -0800 Subject: svm session vcl: per app rx message queues Add option to use per app private segments for app to vpp message queues, as opposed to exposing internal message queues segment. When so configured, internal message queues are still polled by the session queue node but external app message queues are handled by a new input node (appsl-rx-mqs-input) that runs in interrupt state. Signaling of the node, when mqs receive new messages, is done through eventfds epolled by worker epoll input nodes. Type: feature Signed-off-by: Florin Coras Change-Id: Iffe8ce5a9944a56a14e6d0f492a850cb9e392d16 --- src/vcl/vcl_sapi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vcl/vcl_sapi.c') diff --git a/src/vcl/vcl_sapi.c b/src/vcl/vcl_sapi.c index 5258722a484..14401da9d57 100644 --- a/src/vcl/vcl_sapi.c +++ b/src/vcl/vcl_sapi.c @@ -94,7 +94,6 @@ vcl_api_attach_reply_handler (app_sapi_attach_reply_msg_t * mp, int *fds) vcl_segment_attach_mq (vcl_vpp_worker_segment_handle (0), mp->vpp_ctrl_mq, mp->vpp_ctrl_mq_thread, &wrk->ctrl_mq); vcm->ctrl_mq = wrk->ctrl_mq; - vcm->app_index = mp->app_index; return 0; @@ -156,7 +155,7 @@ vcl_sapi_attach (void) app_sapi_msg_t _rmp, *rmp = &_rmp; clib_error_t *err; clib_socket_t *cs; - int fds[SESSION_N_FD_TYPE]; + int fds[32]; /* * Init client socket and send attach -- cgit 1.2.3-korg