aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorStanislav Zaikin <zstaseg@gmail.com>2022-03-31 14:16:28 +0200
committerDamjan Marion <dmarion@me.com>2022-04-06 08:28:13 +0000
commit3791a034d1a50607695b12b56396e480c439880e (patch)
tree1c927f43fe9875d2efa125ab50428e06816fddfc /src/vlib
parentaa659ef5c311016b57433e93269aa027e1e6b159 (diff)
vlib: clear frame flags on free
Type: fix Change-Id: If4a7ac244832ef72d82c71b0277bc110b9500537 Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c
index a9efe7e936d..41d18e2dfa6 100644
--- a/src/vlib/main.c
+++ b/src/vlib/main.c
@@ -208,6 +208,7 @@ vlib_frame_free (vlib_main_t * vm, vlib_node_runtime_t * r, vlib_frame_t * f)
}
f->frame_flags &= ~(VLIB_FRAME_IS_ALLOCATED | VLIB_FRAME_NO_APPEND);
+ f->flags = 0;
vec_add1 (fs->free_frames, f);
ASSERT (fs->n_alloc_frames > 0);
@@ -1163,6 +1164,7 @@ dispatch_pending_node (vlib_main_t * vm, uword pending_frame_index,
/* no new frame has been assigned to this node, use the saved one */
nf->frame = restore_frame;
f->n_vectors = 0;
+ f->flags = 0;
}
else
{