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>
This commit is contained in:
dongjuan
2019-06-04 10:59:02 +08:00
committed by Dave Barach
parent d567a8d51b
commit 8875248f5e
2 changed files with 2 additions and 3 deletions

View File

@@ -764,7 +764,7 @@ typedef struct
} vlib_node_main_t;
#define FRAME_QUEUE_MAX_NELTS 32
#define FRAME_QUEUE_MAX_NELTS 64
typedef struct
{
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);

View File

@@ -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);