diff options
author | Florin Coras <fcoras@cisco.com> | 2018-08-31 14:31:41 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-06 08:35:51 +0000 |
commit | ab2f6dbf9f7b7164a9810f4c80c8abf8463e42ad (patch) | |
tree | 7fb4dd4c70bef17f09a88130eeadeeca86b6d09c /src/vnet/session/segment_manager.c | |
parent | ed234e7f151b05a5b8375dbd9f0add24fe8ebf2f (diff) |
session: support multiple worker binds
Allows app workers to listen on the same session endpoint. Incoming
connects are spread across the workers in a round-robin fashion
Change-Id: Ib5f5817230d9abc6127a85cdbdcad70d980c0f7f
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/segment_manager.c')
-rw-r--r-- | src/vnet/session/segment_manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c index 158a8e8abf3..83d196358f3 100644 --- a/src/vnet/session/segment_manager.c +++ b/src/vnet/session/segment_manager.c @@ -34,7 +34,8 @@ static u32 default_app_evt_queue_size = 128; segment_manager_properties_t * segment_manager_properties_get (segment_manager_t * sm) { - return application_get_segment_manager_properties (sm->app_wrk_index); + app_worker_t *app_wrk = app_worker_get (sm->app_wrk_index); + return application_get_segment_manager_properties (app_wrk->app_index); } segment_manager_properties_t * |