diff options
author | Florin Coras <fcoras@cisco.com> | 2017-05-03 21:09:42 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-05-07 12:38:12 +0000 |
commit | 3af90fceb61d0c236709c25df936bbbf304cbff5 (patch) | |
tree | 19b9166a401fd23fb9e58a9ceba48ca8452c50a4 /src/vnet/tcp/tcp_newreno.c | |
parent | 1989bce006a28781156a61ced693775a6f5aba95 (diff) |
Fix TCP loss recovery, VPP-745
Allows pure loss recovery retransmits only on timeout.
Change-Id: I563cdbf9e7b890a6569350bdbda4f746ace0544e
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_newreno.c')
-rw-r--r-- | src/vnet/tcp/tcp_newreno.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_newreno.c b/src/vnet/tcp/tcp_newreno.c index 856dffe4af9..3525f4e5918 100644 --- a/src/vnet/tcp/tcp_newreno.c +++ b/src/vnet/tcp/tcp_newreno.c @@ -38,7 +38,7 @@ newreno_rcv_ack (tcp_connection_t * tc) else { /* Round up to 1 if needed */ - tc->cwnd += clib_max (tc->snd_mss * tc->snd_mss / tc->cwnd, 1); + tc->cwnd += clib_max ((tc->snd_mss * tc->snd_mss) / tc->cwnd, 1); } } |