vrrp: increase stack size of process node 19/32019/3
authorMatthew Smith <mgsmith@netgate.com>
Fri, 16 Apr 2021 19:13:58 +0000 (14:13 -0500)
committerDamjan Marion <dmarion@me.com>
Tue, 27 Apr 2021 09:25:29 +0000 (09:25 +0000)
Type: fix

The process node which wakes up when a timer expires and transitions
a backup node to master state may call a function to add a MAC address
to an interface. This works fine for some devices, but with DPDK 20.11
on i40e interfaces, the i40e PMD functions which enact the change cause
the stack to be exhausted. Increase the stack size for the node.

Change-Id: I824603e162f4f6d680486706210986572f0d9845
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/vrrp/vrrp_periodic.c

index d373477..9c1b76a 100644 (file)
@@ -211,11 +211,11 @@ vrrp_periodic_process (vlib_main_t * vm,
 }
 
 /* *INDENT-OFF* */
-VLIB_REGISTER_NODE (vrrp_periodic_node) =
-{
+VLIB_REGISTER_NODE (vrrp_periodic_node) = {
   .function = vrrp_periodic_process,
   .type = VLIB_NODE_TYPE_PROCESS,
   .name = "vrrp-periodic-process",
+  .process_log2_n_stack_bytes = 17,
 };
 /* *INDENT-ON* */