diff options
author | Florin Coras <fcoras@cisco.com> | 2017-11-09 18:00:15 -0800 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-11-10 04:04:11 +0000 |
commit | ad0c77f163472e0715c167aec59a26bcd34d649b (patch) | |
tree | 92184cc6d56cda78a47fc638b4baa3532082d735 /src/vnet/session/session_api.c | |
parent | 6dfb5ac3e6e0c3db89a8d5f31be81263ef8bc862 (diff) |
session: use pool for segment manager properties
Change-Id: I280fea2610dcfc0b2da84973b9f567daec42f1f6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_api.c')
-rwxr-xr-x | src/vnet/session/session_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index e0348df5a4b..fb74e6bbff4 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -212,6 +212,7 @@ redirect_connect_callback (u32 server_api_client_index, void *mp_arg) { vl_api_connect_sock_t *mp = mp_arg; unix_shared_memory_queue_t *server_q, *client_q; + segment_manager_properties_t *props; vlib_main_t *vm = vlib_get_main (); f64 timeout = vlib_time_now (vm) + 0.5; application_t *app; @@ -241,8 +242,9 @@ redirect_connect_callback (u32 server_api_client_index, void *mp_arg) return -1; } - mp->options[SESSION_OPTIONS_RX_FIFO_SIZE] = app->sm_properties.rx_fifo_size; - mp->options[SESSION_OPTIONS_TX_FIFO_SIZE] = app->sm_properties.tx_fifo_size; + props = segment_manager_properties_get (app->sm_properties); + mp->options[SESSION_OPTIONS_RX_FIFO_SIZE] = props->rx_fifo_size; + mp->options[SESSION_OPTIONS_TX_FIFO_SIZE] = props->tx_fifo_size; /* * Bounce message handlers MUST NOT block the data-plane. |