diff options
author | Florin Coras <fcoras@cisco.com> | 2021-04-19 10:17:26 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-04-20 16:48:16 +0000 |
commit | 5a41fd5ee7af8d39106d5fc5de7f2d17d7356b30 (patch) | |
tree | b9e8c4dead552939a116ba1c02c6f6bc548e5d66 /src/vnet/tcp/tcp_output.c | |
parent | 005d1e4d4822454363c4a0fa3a1d8b33a14ba6e8 (diff) |
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 <fcoras@cisco.com>
Change-Id: Iade7e1722503da149c62c465c472edbb0a5599f7
Diffstat (limited to 'src/vnet/tcp/tcp_output.c')
-rw-r--r-- | src/vnet/tcp/tcp_output.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 928e8249eb1..dac50b5bf40 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -463,7 +463,10 @@ tcp_make_ack_i (tcp_connection_t * tc, vlib_buffer_t * b, tcp_state_t state, vnet_buffer (b)->tcp.connection_index = tc->c_c_index; if (wnd == 0) - tcp_zero_rwnd_sent_on (tc); + { + transport_rx_fifo_req_deq_ntf (&tc->connection); + tcp_zero_rwnd_sent_on (tc); + } else tcp_zero_rwnd_sent_off (tc); } |