vlib: epoll on worker threads 67/10167/4
authorDamjan Marion <damarion@cisco.com>
Fri, 19 Jan 2018 19:56:12 +0000 (20:56 +0100)
committerDave Barach <openvpp@barachs.net>
Tue, 6 Feb 2018 18:17:46 +0000 (18:17 +0000)
commitceab7882f8016c2407a4383f87277bad069885b1
treee90e247184d9dc3086b6f11f25dff8bd6e7ce51e
parentdf5a99cef13ff6a22c195091be45152dc65f5d71
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 <damarion@cisco.com>
12 files changed:
src/plugins/memif/memif.c
src/plugins/memif/socket.c
src/vlib/main.c
src/vlib/unix/cli.c
src/vlib/unix/input.c
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/af_packet/af_packet.h
src/vnet/devices/af_packet/device.c
src/vnet/devices/virtio/virtio.c
src/vnet/devices/virtio/virtio.h
src/vnet/ip/punt.c
src/vppinfra/file.h