summaryrefslogtreecommitdiffstats
path: root/src/vlib/node.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-03-19 13:12:41 -0700
committerDamjan Marion <dmarion@me.com>2021-03-23 19:58:06 +0000
commit982e44fcc482cc9bc08e46c2a36ab66b0861bacb (patch)
tree7f1ad87cd446a6a5db831c947e007d889b6ce1ba /src/vlib/node.h
parent3853b26c5d8db27df6e2f00539bf021e565614ac (diff)
vlib: add node adaptive mode flag
Don't switch nodes from interrupt to polling state unless adaptive mode flag set. For starters, flag set only on interface input nodes with no polling rx queue and at least one in adaptive mode. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ica1c75f605ead82b7cf74c45c6a774461008f054
Diffstat (limited to 'src/vlib/node.h')
-rw-r--r--src/vlib/node.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/node.h b/src/vlib/node.h
index 9a3bb8370af..aae5103908d 100644
--- a/src/vlib/node.h
+++ b/src/vlib/node.h
@@ -294,6 +294,7 @@ typedef struct vlib_node_t
#define VLIB_NODE_FLAG_SWITCH_FROM_INTERRUPT_TO_POLLING_MODE (1 << 6)
#define VLIB_NODE_FLAG_SWITCH_FROM_POLLING_TO_INTERRUPT_MODE (1 << 7)
#define VLIB_NODE_FLAG_TRACE_SUPPORTED (1 << 8)
+#define VLIB_NODE_FLAG_ADAPTIVE_MODE (1 << 9)
/* State for input nodes. */
u8 state;