diff options
author | Florin Coras <fcoras@cisco.com> | 2019-08-23 10:28:01 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-09-25 22:06:20 +0000 |
commit | d4895f2fcf96de62e07569cf831e1d49e33c4fb7 (patch) | |
tree | 2a129d3e1eb0d564d3b33405fbc9fda31f7f6d20 /src/plugins | |
parent | 56417fa9466b66fc2a59c30674935f2fd89790f9 (diff) |
tcp: fix byte tracker samples flush
Type: fix
Change-Id: I3b4cb8fc17387693d6ad6cdef004ca99cd56bc23
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit 92f190a802b6999ce68696032e556aa75171e1cc)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/unittest/tcp_test.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/unittest/tcp_test.c b/src/plugins/unittest/tcp_test.c index 940ffcf94c4..7aa24562d7e 100644 --- a/src/plugins/unittest/tcp_test.c +++ b/src/plugins/unittest/tcp_test.c @@ -1094,6 +1094,19 @@ tcp_test_delivery (vlib_main_t * vm, unformat_input_t * input) TCP_TEST (tc->app_limited == 0, "app limited should be cleared"); /* + * 9) test flush + */ + + tcp_bt_track_tx (tc); + tc->snd_nxt += burst; + + session_main.wrk[thread_index].last_vlib_time = 12; + tcp_bt_track_tx (tc); + tc->snd_nxt += burst; + + tcp_bt_flush_samples (tc); + + /* * Cleanup */ vec_free (sacks); |