diff options
author | Florin Coras <fcoras@cisco.com> | 2018-01-31 06:52:17 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-02-05 21:45:28 +0000 |
commit | a332c46a51f9b4e13963340dfee1318e7513c124 (patch) | |
tree | fde1056972c5b164987bd15ce0530a3d48d1bbd7 /src/vnet/session/session_api.c | |
parent | e71eb5922a293eca36dbd323970741daaca3c5c7 (diff) |
session: segment manager refactor
- use valloc as a 'central' segment baseva manager
- use per segment manager segment pools and use rwlocks to guard them
- add session test that exercises segment creation
- embed segment manager properties into application since they're shared
- fix rw locks
Change-Id: I761164c147275d9e8a926f1eda395e090d231f9a
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index a1225f83e8c..57af960597d 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -290,7 +290,7 @@ redirect_connect_callback (u32 server_api_client_index, void *mp_arg) return -1; } - props = segment_manager_properties_get (app->sm_properties); + props = application_segment_manager_properties (app); mp->options[APP_OPTIONS_RX_FIFO_SIZE] = props->rx_fifo_size; mp->options[APP_OPTIONS_TX_FIFO_SIZE] = props->tx_fifo_size; |