diff options
author | Florin Coras <fcoras@cisco.com> | 2018-08-27 09:52:18 -0700 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-08-28 08:23:51 +0000 |
commit | 6011699556bc48eac884920d818a2a50339b9f01 (patch) | |
tree | 979de05fb4a46afc10da07bc4e81ad6f1d0c863d /src/vnet/session/application.c | |
parent | d313f9e6f7c6d50aac189668a67bf13b86dd791c (diff) |
vcl/session: use mq for bind replies
Change-Id: Iac6e1c32cf99c5392a29f7366401b7fc39e463e3
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r-- | src/vnet/session/application.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c index 1ad94cc2778..b7498d00881 100644 --- a/src/vnet/session/application.c +++ b/src/vnet/session/application.c @@ -769,6 +769,12 @@ application_has_global_scope (application_t * app) return app->flags & APP_OPTIONS_FLAGS_USE_GLOBAL_SCOPE; } +u8 +application_use_mq_for_ctrl (application_t * app) +{ + return app->flags & APP_OPTIONS_FLAGS_USE_MQ_FOR_CTRL_MSGS; +} + /** * Send an API message to the external app, to map new segment */ @@ -1163,6 +1169,17 @@ application_get_local_session_from_handle (session_handle_t handle) return application_get_local_session (server_wrk, session_index); } +local_session_t * +application_get_local_listen_session_from_handle (session_handle_t lh) +{ + u32 ll_index, server_wrk_index; + app_worker_t *server_wrk; + + local_session_parse_handle (lh, &server_wrk_index, &ll_index); + server_wrk = app_worker_get (server_wrk_index); + return application_get_local_listen_session (server_wrk, ll_index); +} + always_inline void application_local_listener_session_endpoint (local_session_t * ll, session_endpoint_t * sep) |