diff options
author | Florin Coras <fcoras@cisco.com> | 2020-03-26 02:45:39 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-04-02 11:27:33 +0000 |
commit | dfd980fcffacc2bed90e53b9da669eac53025bb2 (patch) | |
tree | eb86d369129064c8b4470818d96dc8bcc48cd632 /src/vnet/tcp | |
parent | 883bf3d1a378dcf99837ce2491cf4e448dc498f6 (diff) |
tcp: count zero wnd enqueue attempts
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: If22bad96a9102bc4058d52fc8565bd6a14c3c66c
Diffstat (limited to 'src/vnet/tcp')
-rwxr-xr-x | src/vnet/tcp/tcp_input.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |