summaryrefslogtreecommitdiffstats
path: root/src/vlib/node.c
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2020-12-21 18:19:46 +0100
committerDamjan Marion <dmarion@me.com>2021-01-22 09:06:32 +0000
commite848c8fb8c18bd04d7e27b9574fc8163a4c31d85 (patch)
tree25b148568b27c4a0bff33a7612675cf8666b9c6b /src/vlib/node.c
parent85c1943e521a5c1289ee19d49d8e41012f8b7a99 (diff)
interface: let drivers control polling when down
Change-Id: I03e164d8d5a329497f422e99f8b0058135241b4e Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: fix
Diffstat (limited to 'src/vlib/node.c')
-rw-r--r--src/vlib/node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/node.c b/src/vlib/node.c
index 13889d13ca0..25e249bdda9 100644
--- a/src/vlib/node.c
+++ b/src/vlib/node.c
@@ -478,6 +478,8 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r)
if (vec_len (n->runtime_data) > 0)
clib_memcpy (rt->runtime_data, n->runtime_data,
vec_len (n->runtime_data));
+ else
+ clib_memset (rt->runtime_data, 0, VLIB_NODE_RUNTIME_DATA_SIZE);
vec_free (n->runtime_data);
}