aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-11-11 13:25:53 -0800
committerMatthew Smith <mgsmith@netgate.com>2020-11-13 15:41:36 +0000
commite655240550f0670279b0ca40942887715b8f514e (patch)
tree160ed140c8987606d9177206c7456395cb83d47c /src/vnet/session
parenta5180ba1b1ababbfa046848418c099580aceef27 (diff)
session: fix fifo tuning init on connect
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I6f81d2010e98d0a5fbdc315abc04737bbcc1c434
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application_worker.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c
index 970f42f2508..dd159c6693c 100644
--- a/src/vnet/session/application_worker.c
+++ b/src/vnet/session/application_worker.c
@@ -388,17 +388,15 @@ app_worker_init_connected (app_worker_t * app_wrk, session_t * s)
application_t *app = application_get (app_wrk->app_index);
segment_manager_t *sm;
- /* Allocate fifos for session, unless the app is a builtin proxy */
- if (!application_is_builtin_proxy (app))
- {
- sm = app_worker_get_connect_segment_manager (app_wrk);
- return app_worker_alloc_session_fifos (sm, s);
- }
-
if (app->cb_fns.fifo_tuning_callback)
s->flags |= SESSION_F_CUSTOM_FIFO_TUNING;
- return 0;
+ /* Allocate fifos for session, unless the app is a builtin proxy */
+ if (application_is_builtin_proxy (app))
+ return 0;
+
+ sm = app_worker_get_connect_segment_manager (app_wrk);
+ return app_worker_alloc_session_fifos (sm, s);
}
int