summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-23 10:28:01 -0700
committerFlorin Coras <florin.coras@gmail.com>2019-08-23 17:33:09 +0000
commit92f190a802b6999ce68696032e556aa75171e1cc (patch)
treecad3ee0d76c107b4248ea4a88b1f366da8bb17a5 /src/vnet/tcp
parenta2ac36c91749d5377b263c3d99d484ac33854eef (diff)
tcp: fix byte tracker samples flush
Type: fix Change-Id: I3b4cb8fc17387693d6ad6cdef004ca99cd56bc23 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp')
-rw-r--r--src/vnet/tcp/tcp_bt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_bt.c b/src/vnet/tcp/tcp_bt.c
index dd3d9539d9a..fe007543cd0 100644
--- a/src/vnet/tcp/tcp_bt.c
+++ b/src/vnet/tcp/tcp_bt.c
@@ -544,6 +544,7 @@ tcp_bt_flush_samples (tcp_connection_t * tc)
u32 *samples = 0, *si;
vec_validate (samples, pool_elts (bt->samples) - 1);
+ vec_reset_length (samples);
/* *INDENT-OFF* */
pool_foreach (bts, bt->samples, ({