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
This commit is contained in:

committed by
Damjan Marion

parent
3853b26c5d
commit
982e44fcc4
@ -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;
|
||||
|
Reference in New Issue
Block a user