From 4280bfc8c0a3780627b58d6bbd248771f382667c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 7 Aug 2018 00:51:33 -0700 Subject: tcp_echo: fix server rx buffer Change-Id: I7bb81259008f5d2da6e26405fd0774294181dc6b Signed-off-by: Florin Coras --- src/tests/vnet/session/tcp_echo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/vnet/session/tcp_echo.c b/src/tests/vnet/session/tcp_echo.c index 59314f943f0..de17dcac022 100644 --- a/src/tests/vnet/session/tcp_echo.c +++ b/src/tests/vnet/session/tcp_echo.c @@ -1386,8 +1386,6 @@ main (int argc, char **argv) /* make the main heap thread-safe */ h->flags |= MHEAP_FLAG_THREAD_SAFE; - vec_validate (em->rx_buf, 128 << 10); - memset (em, 0, sizeof (*em)); em->session_index_by_vpp_handles = hash_create (0, sizeof (uword)); em->my_pid = getpid (); @@ -1396,6 +1394,7 @@ main (int argc, char **argv) em->use_sock_api = 1; em->fifo_size = 64 << 10; em->n_clients = 1; + vec_validate (em->rx_buf, 128 << 10); clib_time_init (&em->clib_time); init_error_string_table (em); -- cgit 1.2.3-korg