diff options
author | Damjan Marion <damarion@cisco.com> | 2016-06-27 08:30:30 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-06-29 13:26:21 +0000 |
commit | 0f8ecf0eb267d580da4d963a0e0420eb15238d78 (patch) | |
tree | 607f051a28617d6f1fbe2a423553a2ff6f1eb085 /vlib/vlib/node.h | |
parent | 2838a2355a130b951ef5e3ebbf630f6d2c65b120 (diff) |
Decouple worker thread code from dpdk, enable worker threads in vpp_lite
Change-Id: I28616f1a89f2da95484438ec1a1db64845f15ef6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vlib/vlib/node.h')
-rw-r--r-- | vlib/vlib/node.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vlib/vlib/node.h b/vlib/vlib/node.h index a54f4e83e62..e9842275b0e 100644 --- a/vlib/vlib/node.h +++ b/vlib/vlib/node.h @@ -663,4 +663,22 @@ typedef struct { vlib_node_registration_t * node_registrations; } vlib_node_main_t; + +#define FRAME_QUEUE_MAX_NELTS 32 +typedef struct { + CLIB_CACHE_LINE_ALIGN_MARK(cacheline0); + u64 head; + u64 head_hint; + u64 tail; + u32 n_in_use; + u32 nelts; + u32 written; + u32 threshold; + i32 n_vectors[FRAME_QUEUE_MAX_NELTS]; +} frame_queue_trace_t; + +typedef struct { + u64 count[FRAME_QUEUE_MAX_NELTS]; +} frame_queue_nelt_counter_t; + #endif /* included_vlib_node_h */ |