From: John Lo Date: Fri, 24 May 2019 11:16:12 +0000 (-0400) Subject: Fix congestion recovery check X-Git-Tag: v19.01.3-rc0 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=3522cf8493f3455ce20209639340d39d584286b8;p=vpp.git Fix congestion recovery check Change-Id: Ia9347c8cb6175c6bec3f9c27a7e0a71c4e58fe28 Signed-off-by: John Lo --- diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 392d694030e..b345e40d4c0 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1526,8 +1526,10 @@ tcp_rcv_ack (tcp_worker_ctx_t * wrk, tcp_connection_t * tc, vlib_buffer_t * b, /* When we entered cong recovery, we reset snd_nxt to snd_una. Seems * peer still has the data so accept the ack */ if (tcp_in_cong_recovery (tc) - && seq_leq (vnet_buffer (b)->tcp.ack_number, - tc->snd_una + tc->snd_wnd)) + && (seq_leq (vnet_buffer (b)->tcp.ack_number, + tc->snd_una + tc->snd_wnd) + || seq_leq (vnet_buffer (b)->tcp.ack_number, + tc->snd_congestion))) { tc->snd_nxt = vnet_buffer (b)->tcp.ack_number; if (seq_gt (tc->snd_nxt, tc->snd_una_max))