diff options
author | Florin Coras <fcoras@cisco.com> | 2020-11-04 13:08:35 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-11-04 21:28:43 +0000 |
commit | ce252ca83f8c1621dae2112f59750c0e0f7f784a (patch) | |
tree | 6572f37f8782ece4fd12f4bc13a442c2546b025b | |
parent | 24b5107edd21b191fac3d6f9f2ae58c6ede59a9e (diff) |
session: fix ct server session thread index
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I835b61f0b88a7324b09d82400debd78ad8b95401
-rw-r--r-- | src/plugins/hs_apps/vcl/vcl_test_server.c | 2 | ||||
-rw-r--r-- | src/vnet/session/application_local.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/hs_apps/vcl/vcl_test_server.c b/src/plugins/hs_apps/vcl/vcl_test_server.c index 852c96863ce..798fd72b481 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_server.c +++ b/src/plugins/hs_apps/vcl/vcl_test_server.c @@ -387,7 +387,7 @@ vcl_test_server_process_opts (vcl_test_server_main_t * vsm, int argc, vsm->cfg.proto = VPPCOM_PROTO_TCP; opterr = 0; - while ((c = getopt (argc, argv, "6DLsw:p:")) != -1) + while ((c = getopt (argc, argv, "6DLsw:hp:")) != -1) switch (c) { case '6': 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; |