From 5a41fd5ee7af8d39106d5fc5de7f2d17d7356b30 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 19 Apr 2021 10:17:26 -0700 Subject: tcp: req app deq notification on fifo full If fifo full, default to requesting an app deq notification and forcing an ack (window update) if zero rcv window sent is still active. Type: improvement Signed-off-by: Florin Coras Change-Id: Iade7e1722503da149c62c465c472edbb0a5599f7 --- src/vnet/session/session.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vnet/session') diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index 44cbaebf4ab..8b591339edb 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -574,6 +574,13 @@ transport_rx_fifo_has_ooo_data (transport_connection_t * tc) return svm_fifo_has_ooo_data (s->rx_fifo); } +always_inline void +transport_rx_fifo_req_deq_ntf (transport_connection_t *tc) +{ + session_t *s = session_get (tc->s_index, tc->thread_index); + svm_fifo_add_want_deq_ntf (s->rx_fifo, SVM_FIFO_WANT_DEQ_NOTIF); +} + always_inline clib_time_type_t transport_time_now (u32 thread_index) { -- cgit 1.2.3-korg