summaryrefslogtreecommitdiffstats
path: root/src/tests/vnet/session/tcp_echo.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-08-07 00:51:33 -0700
committerDave Barach <openvpp@barachs.net>2018-08-13 15:21:02 +0000
commit4280bfc8c0a3780627b58d6bbd248771f382667c (patch)
tree3d0e656c32048bd44c13f5867332bb4accc7e6cf /src/tests/vnet/session/tcp_echo.c
parent332cc5a60b250b46b13f3abf9cb075c222ff8ad9 (diff)
tcp_echo: fix server rx buffer
Change-Id: I7bb81259008f5d2da6e26405fd0774294181dc6b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/tests/vnet/session/tcp_echo.c')
-rw-r--r--src/tests/vnet/session/tcp_echo.c3
1 files changed, 1 insertions, 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);