aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/unix/unix.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-06-14 18:52:46 -0400
committerDamjan Marion <dmarion@me.com>2018-06-21 14:57:02 +0000
commit85aa49019f4b4b2b7a4fce4313fdc0f2de65c277 (patch)
tree14c2ef301403f64e1dd08f7912c86a2cb1bffed3 /src/vlib/unix/unix.h
parentcb3b7052357b57ab927edf178baa1412d7df81d5 (diff)
configurable per-dispatch-cycle sleep
Workaround for lack of driver interrupt support. Also quite handy for home gateway, laptop/vagrant, other use-cases not requiring maximum vectors/second for proper operation. Change-Id: Ifc4b98112450664beef67b89ab8a6940a3bf24b5 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlib/unix/unix.h')
-rw-r--r--src/vlib/unix/unix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/unix/unix.h b/src/vlib/unix/unix.h
index 4c8566b7ee8..7856e5b7df7 100644
--- a/src/vlib/unix/unix.h
+++ b/src/vlib/unix/unix.h
@@ -102,6 +102,9 @@ typedef struct
/* Store the original state of stdin when it's a tty */
struct termios tio_stdin;
int tio_isset;
+
+ u32 poll_sleep_usec;
+
} unix_main_t;
/* Global main structure. */