tcp: improve rate samples for retansmitted segments 53/23053/2
authorFlorin Coras <[email protected]>
Sun, 13 Oct 2019 01:10:20 +0000 (18:10 -0700)
committerAndrew Yourtchenko <[email protected]>
Thu, 31 Oct 2019 12:16:19 +0000 (12:16 +0000)
commitcd0c5d8373d04f9e49b2ad630632e7940d841986
treeeb853c3f13605bbeaf7478f27aa25532e2073927
parentdcc5de6fc321c3828a7f2d55204641e198da5af2
tcp: improve rate samples for retansmitted segments

Type: fix

- Initialize max_seq on both transmitted and retransmitted segments
- Keep track of segments that have been sacked.
- Track new data segments sent during recovery

Change-Id: Ice55231a3da200ae6171702e54b2ce155f831143
Signed-off-by: Florin Coras <[email protected]>
(cherry picked from commit d6ae4bf13a7819d64d128d196d491af4700fa948)
src/plugins/unittest/tcp_test.c
src/vnet/tcp/tcp.h
src/vnet/tcp/tcp_bt.c
src/vnet/tcp/tcp_output.c