session/tls: remove unused t_app_index field 79/18079/3
authorFlorin Coras <fcoras@cisco.com>
Wed, 6 Mar 2019 19:01:31 +0000 (11:01 -0800)
committerDamjan Marion <dmarion@me.com>
Thu, 7 Mar 2019 10:17:24 +0000 (10:17 +0000)
Change-Id: Idbf7f3a57dc399798b8dba9463daeb7d66470ab1
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/application_local.c
src/vnet/session/session_types.h
src/vnet/tls/tls.c

index 5a3f738..83a6c8e 100644 (file)
@@ -129,7 +129,6 @@ ct_session_connect_notify (session_t * ss)
   cs->session_state = SESSION_STATE_CONNECTING;
   cs->app_wrk_index = client_wrk->wrk_index;
   cs->connection_index = cct->c_c_index;
-  cs->t_app_index = client_wrk->app_index;
 
   cct->c_s_index = cs->session_index;
   cct->client_rx_fifo = ss->tx_fifo;
@@ -282,7 +281,6 @@ ct_connect (app_worker_t * client_wrk, session_t * ll,
 
   server_wrk = application_listener_select_worker (ll);
   ss->app_wrk_index = server_wrk->wrk_index;
-  ss->t_app_index = server_wrk->app_index;
 
   sct->c_s_index = ss->session_index;
   sct->server_wrk = ss->app_wrk_index;
index 3b6ab3d..7755fe3 100644 (file)
@@ -177,9 +177,6 @@ typedef struct session_
 
   union
   {
-    /** Transport app index for apps acting as transports */
-    u32 t_app_index;
-
     /** App listener index */
     u32 al_index;
 
index ce62765..c64a6d1 100644 (file)
@@ -202,7 +202,6 @@ tls_notify_app_accept (tls_ctx_t * ctx)
   app_session->connection_index = ctx->tls_ctx_handle;
   app_session->session_type = app_listener->session_type;
   app_session->listener_index = app_listener->session_index;
-  app_session->t_app_index = tls_main.app_index;
   app_session->session_state = SESSION_STATE_ACCEPTING;
 
   if ((rv = app_worker_init_accepted (app_session)))
@@ -240,7 +239,6 @@ tls_notify_app_connected (tls_ctx_t * ctx, u8 is_failed)
   app_session->connection_index = ctx->tls_ctx_handle;
   app_session->session_type =
     session_type_from_proto_and_ip (TRANSPORT_PROTO_TLS, ctx->tcp_is_ip4);
-  app_session->t_app_index = tls_main.app_index;
 
   if (app_worker_init_connected (app_wrk, app_session))
     goto failed;