diff options
author | Florin Coras <fcoras@cisco.com> | 2019-11-04 14:39:33 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-11-12 22:13:12 +0000 |
commit | ab46b6a03b9c416f6fafe0a11bf82a0297b2b498 (patch) | |
tree | b37b1dc8ebbf3c20375837566416cfdfec097f17 /src/vnet/tcp/tcp.h | |
parent | a6a98b5460f066e0955b89e6782e55ed3e4f0ede (diff) |
tcp: fix retransmit with no sacks
Type: fix
Change-Id: I6f7df0d358f57f7feadb9b7a3fcffb99558b2af8
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit bf1f8b7f288c29bfcc128b1d09eae1c1eac2b7cc)
Diffstat (limited to 'src/vnet/tcp/tcp.h')
-rw-r--r-- | src/vnet/tcp/tcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index be8d38770d5..8530ba499fc 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -885,7 +885,8 @@ tcp_bytes_out (const tcp_connection_t * tc) if (tcp_opts_sack_permitted (&tc->rcv_opts)) return tc->sack_sb.sacked_bytes + tc->sack_sb.lost_bytes; else - return tc->rcv_dupacks * tc->snd_mss; + return clib_min (tc->rcv_dupacks * tc->snd_mss, + tc->snd_nxt - tc->snd_una); } /** |