summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_local.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-11-04 13:08:35 -0800
committerFlorin Coras <florin.coras@gmail.com>2020-11-04 21:28:43 +0000
commitce252ca83f8c1621dae2112f59750c0e0f7f784a (patch)
tree6572f37f8782ece4fd12f4bc13a442c2546b025b /src/vnet/session/application_local.c
parent24b5107edd21b191fac3d6f9f2ae58c6ede59a9e (diff)
session: fix ct server session thread index
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I835b61f0b88a7324b09d82400debd78ad8b95401
Diffstat (limited to 'src/vnet/session/application_local.c')
-rw-r--r--src/vnet/session/application_local.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index dc777562d00..9b0136f95dc 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -120,7 +120,6 @@ ct_session_connect_notify (session_t * ss)
cs = session_alloc (thread_index);
ss = session_get (ss_index, thread_index);
cs->session_type = ss->session_type;
- cs->connection_index = sct->c_c_index;
cs->listener_handle = SESSION_INVALID_HANDLE;
cs->session_state = SESSION_STATE_CONNECTING;
cs->app_wrk_index = client_wrk->wrk_index;
@@ -211,6 +210,8 @@ ct_init_accepted_session (app_worker_t * server_wrk,
sm_index = segment_manager_index (sm);
ls->rx_fifo->master_session_index = ls->session_index;
ls->tx_fifo->master_session_index = ls->session_index;
+ ls->rx_fifo->master_thread_index = ls->thread_index;
+ ls->tx_fifo->master_thread_index = ls->thread_index;
ls->rx_fifo->segment_manager = sm_index;
ls->tx_fifo->segment_manager = sm_index;
ls->rx_fifo->segment_index = seg_index;