summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/file.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-08-02 12:16:03 -0700
committerDamjan Marion <dmarion@me.com>2018-09-19 09:45:30 +0000
commit8023ad4c41090995c91f529a94519ffaa605d238 (patch)
tree3e323f9b9b2eb3b1664eff158876c5bcfd150d49 /src/vppinfra/file.h
parentdf865200c769e31b5fe8f4b246516f07b80f4004 (diff)
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 <fcoras@cisco.com>
Diffstat (limited to 'src/vppinfra/file.h')
-rw-r--r--src/vppinfra/file.h7
1 files changed, 7 insertions, 0 deletions
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 */
/*