From 54693d23307ce8944a4d97379efd3bd4dcf0485c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 17 Jul 2018 10:46:29 -0700 Subject: vcl: use events for epoll/select/read/write Have vcl poll and wait on the event message queues as opposed to constantly polling the session fifos. This also adds event signaling to cut through sessions. On the downside, because we can't wait on multiple condvars, i.e., when we have multiple message queues because of cut-through registrations, we do timed waits. Change-Id: I29ade95dba449659fe46008bb1af502276a7c5fd Signed-off-by: Florin Coras --- src/vcl/sock_test_client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/vcl/sock_test_client.c') diff --git a/src/vcl/sock_test_client.c b/src/vcl/sock_test_client.c index e88b2b91b9d..15616768cdd 100644 --- a/src/vcl/sock_test_client.c +++ b/src/vcl/sock_test_client.c @@ -455,10 +455,9 @@ stream_test_client (sock_test_t test) if (FD_ISSET (tsock->fd, wfdset) && (tsock->stats.tx_bytes < ctrl->cfg.total_bytes)) { - tx_bytes = - sock_test_write (tsock->fd, (uint8_t *) tsock->txbuf, - ctrl->cfg.txbuf_size, &tsock->stats, - ctrl->cfg.verbose); + tx_bytes = sock_test_write (tsock->fd, (uint8_t *) tsock->txbuf, + ctrl->cfg.txbuf_size, &tsock->stats, + ctrl->cfg.verbose); if (tx_bytes < 0) { fprintf (stderr, "\nCLIENT: ERROR: sock_test_write(%d) " -- cgit 1.2.3-korg