diff options
author | Florin Coras <fcoras@cisco.com> | 2019-07-23 23:54:47 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-07-26 14:39:30 +0000 |
commit | 26dd6de91b4d36ac04154c7eb6339684db6684a0 (patch) | |
tree | 202ff4daf1747dcf97de0efcae7af74be6f6bc64 /src/vnet/session/session.h | |
parent | 038e1dfbdfd0bd785852c364011da0a1d828093e (diff) |
session tcp: handle rxt and acks as custom events
Type: feature
Control ack generation and retransmissions with session layer scheduler.
Change-Id: Iacdf9f84ab81f44851980aa45a83e75f29be2b7b
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r-- | src/vnet/session/session.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index a3f2a01929b..8f7bd6c999c 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -243,6 +243,26 @@ session_evt_add_pending_disconnects (session_worker_t * wrk, session_evt_pending_disconnects_head (wrk)); } +static inline session_evt_elt_t * +session_evt_alloc_new (session_worker_t * wrk) +{ + session_evt_elt_t *elt; + elt = session_evt_elt_alloc (wrk); + clib_llist_add_tail (wrk->event_elts, evt_list, elt, + pool_elt_at_index (wrk->event_elts, wrk->new_head)); + return elt; +} + +static inline session_evt_elt_t * +session_evt_alloc_old (session_worker_t * wrk) +{ + session_evt_elt_t *elt; + elt = session_evt_elt_alloc (wrk); + clib_llist_add_tail (wrk->event_elts, evt_list, elt, + pool_elt_at_index (wrk->event_elts, wrk->old_head)); + return elt; +} + always_inline u8 session_is_valid (u32 si, u8 thread_index) { @@ -394,6 +414,8 @@ void session_send_rpc_evt_to_thread (u32 thread_index, void *fp, void *rpc_args); void session_send_rpc_evt_to_thread_force (u32 thread_index, void *fp, void *rpc_args); +void session_add_self_custom_tx_evt (transport_connection_t * tc, + u8 has_prio); transport_connection_t *session_get_transport (session_t * s); void session_get_endpoint (session_t * s, transport_endpoint_t * tep, u8 is_lcl); |