From: Florin Coras Date: Thu, 26 Mar 2020 02:45:39 +0000 (+0000) Subject: tcp: count zero wnd enqueue attempts X-Git-Tag: v20.09-rc0~295 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F26155%2F4;p=vpp.git tcp: count zero wnd enqueue attempts Type: improvement Signed-off-by: Florin Coras Change-Id: If22bad96a9102bc4058d52fc8565bd6a14c3c66c --- diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index bc11461b521..86158b9d6c6 100755 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1942,6 +1942,10 @@ tcp_session_enqueue_data (tcp_connection_t * tc, vlib_buffer_t * b, } else { + /* Packet made it through for ack processing */ + if (tc->rcv_wnd < tc->snd_mss) + return TCP_ERROR_ZERO_RWND; + return TCP_ERROR_FIFO_FULL; }