From ceab7882f8016c2407a4383f87277bad069885b1 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Fri, 19 Jan 2018 20:56:12 +0100 Subject: vlib: epoll on worker threads This patch teaches worer threads to sleep and to be waken up by kernel if there is activity on file desctiptors assigned to that thread. It also adds counters to epoll file descriptors and new debug cli 'show unix file'. Change-Id: Iaf67869f4aa88ff5b0a08982e1c08474013107c4 Signed-off-by: Damjan Marion --- src/vnet/ip/punt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/ip/punt.c') diff --git a/src/vnet/ip/punt.c b/src/vnet/ip/punt.c index 4a027bfdadb..f24a43fdece 100644 --- a/src/vnet/ip/punt.c +++ b/src/vnet/ip/punt.c @@ -890,6 +890,7 @@ punt_config (vlib_main_t * vm, unformat_input_t * input) clib_file_t template = { 0 }; template.read_function = punt_socket_read_ready; template.file_descriptor = pm->socket_fd; + template.description = format (0, "%s", socket_path); pm->clib_file_index = clib_file_add (fm, &template); pm->is_configured = true; -- cgit 1.2.3-korg