aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-13 16:48:04 +0000
committerFlorin Coras <florin.coras@gmail.com>2020-04-13 16:58:11 +0000
commit4fde4ae0363de45d867eb3472e43b89ae34d3bd1 (patch)
tree82a2fcf27b86872bdb16445ee4d5115e77199666 /src/vnet/session/session.c
parentc74b43c80789f5e437dfe4cc491157b45a7f222e (diff)
session: remove ho with fifos support
Type: refactor UDPC (removed) was the only consumer. Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I2812bf58d3c68fe021ec73acaa1bd00ef3172846
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c26
1 files changed, 5 insertions, 21 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 1274408675f..ed940d593c5 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -734,10 +734,9 @@ session_main_flush_all_enqueue_events (u8 transport_proto)
return errors;
}
-static inline int
-session_stream_connect_notify_inline (transport_connection_t * tc,
- session_error_t err,
- session_state_t opened_state)
+int
+session_stream_connect_notify (transport_connection_t * tc,
+ session_error_t err)
{
u32 opaque = 0, new_ti, new_si;
app_worker_t *app_wrk;
@@ -781,7 +780,7 @@ session_stream_connect_notify_inline (transport_connection_t * tc,
}
s = session_get (new_si, new_ti);
- s->session_state = opened_state;
+ s->session_state = SESSION_STATE_READY;
session_lookup_add_connection (tc, session_handle (s));
if (app_worker_connect_notify (app_wrk, s, SESSION_E_NONE, opaque))
@@ -794,20 +793,6 @@ session_stream_connect_notify_inline (transport_connection_t * tc,
return 0;
}
-int
-session_stream_connect_notify (transport_connection_t * tc,
- session_error_t err)
-{
- return session_stream_connect_notify_inline (tc, err, SESSION_STATE_READY);
-}
-
-int
-session_ho_stream_connect_notify (transport_connection_t * tc,
- session_error_t err)
-{
- return session_stream_connect_notify_inline (tc, err, SESSION_STATE_OPENED);
-}
-
static void
session_switch_pool_reply (void *arg)
{
@@ -1225,8 +1210,7 @@ session_open_vc (u32 app_wrk_index, session_endpoint_t * rmt, u32 opaque)
* thing but better than allocating a separate half-open pool.
*/
tc->s_index = opaque;
- if (transport_half_open_has_fifos (rmt->transport_proto))
- return session_ho_stream_connect_notify (tc, 0 /* is_fail */ );
+
return 0;
}