aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/threads.c
diff options
context:
space:
mode:
authordongjuan <dong.juan1@zte.com.cn>2019-06-04 10:59:02 +0800
committerDave Barach <openvpp@barachs.net>2019-06-08 16:43:17 +0000
commit8875248f5e0602f4b4872ea12e542826df3df1f8 (patch)
tree519b4da76fc33966ffa9ff38d7159ad1f811f964 /src/vlib/threads.c
parentd567a8d51bab6dbd45b70ec99e9b7a1b9ae58e71 (diff)
trace frame-queue on trigger out of memory
FRAME_QUEUE_NELTS is 64 in thread.c Change-Id: Ie7e5962afe05dfc7f38e3d597dabc74dcc2dab8d Signed-off-by: dongjuan <dong.juan1@zte.com.cn>
Diffstat (limited to 'src/vlib/threads.c')
-rw-r--r--src/vlib/threads.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index 4e4d60a5e62..297c977c464 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -27,7 +27,6 @@
DECLARE_CJ_GLOBAL_LOG;
-#define FRAME_QUEUE_NELTS 64
u32
vl (void *p)
@@ -1786,7 +1785,7 @@ vlib_frame_queue_main_init (u32 node_index, u32 frame_queue_nelts)
int i;
if (frame_queue_nelts == 0)
- frame_queue_nelts = FRAME_QUEUE_NELTS;
+ frame_queue_nelts = FRAME_QUEUE_MAX_NELTS;
ASSERT (frame_queue_nelts >= 8);