From 8023ad4c41090995c91f529a94519ffaa605d238 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 2 Aug 2018 12:16:03 -0700 Subject: socket api: do not delay sending of messages Instead of relying on main epoll loop to send messages, try to send as soon as possible. Change-Id: I27c0b4076f3599ad6e968df4746881a6717d4299 Signed-off-by: Florin Coras --- src/vppinfra/file.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vppinfra') diff --git a/src/vppinfra/file.h b/src/vppinfra/file.h index b5a0507c3b8..48412ddd99b 100644 --- a/src/vppinfra/file.h +++ b/src/vppinfra/file.h @@ -156,6 +156,13 @@ clib_file_get (clib_file_main_t * fm, u32 file_index) return pool_elt_at_index (fm->file_pool, file_index); } +always_inline clib_error_t * +clib_file_write (clib_file_t * f) +{ + f->write_events++; + return f->write_function (f); +} + #endif /* included_clib_file_h */ /* -- cgit