api: fix vl_api_clnt_node process stack overflow 12/24312/2
authorChenmin Sun <chenmin.sun@intel.com>
Tue, 14 Jan 2020 00:47:22 +0000 (08:47 +0800)
committerDave Barach <openvpp@barachs.net>
Wed, 5 Feb 2020 15:24:57 +0000 (15:24 +0000)
Type: fix

Some simple settings(e.g. bringing up an i40e/ice interface) through
vnat consume more than the currently available stack space.

This root cause of this issue is same with commit
b2dbb36fc265b8996fc7fa310dda447d5b0479cb "vlib: fix startup-config \
-process stack overflow" and commit 2fd44a00aa26188ca75f0accd734f2 \
1758c199bf "vlib: fix cli process stack overflow"

Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Change-Id: I312e4fed96a679aa68b859e28a90a2a4b6eb0c6e

src/vlibmemory/vlib_api.c

index 297ac37..5820168 100644 (file)
@@ -425,6 +425,7 @@ VLIB_REGISTER_NODE (vl_api_clnt_node) =
   .type = VLIB_NODE_TYPE_PROCESS,
   .name = "api-rx-from-ring",
   .state = VLIB_NODE_STATE_DISABLED,
+  .process_log2_n_stack_bytes = 18,
 };
 /* *INDENT-ON* */