summaryrefslogtreecommitdiffstats
path: root/src/vlib/stats/stats.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-04-06 12:06:41 +0200
committerOle Tr�an <otroan@employees.org>2022-04-06 11:25:03 +0000
commiteecec8ceba7dcd572ff557726e7e253488b13656 (patch)
treee7964d2e0798bf9248acc9a1ef3c0ae055a3aee4 /src/vlib/stats/stats.h
parent8271dfdff3cf65e3b077e149d4600bd90d2b4b03 (diff)
stats: avoid linear search for empty entry
Type: improvement Change-Id: Ie4cdc6d8906da3d1cd18a8f1d7076283546d3003 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/stats/stats.h')
-rw-r--r--src/vlib/stats/stats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/stats/stats.h b/src/vlib/stats/stats.h
index ef43510b255..09a9aef002d 100644
--- a/src/vlib/stats/stats.h
+++ b/src/vlib/stats/stats.h
@@ -75,6 +75,7 @@ typedef struct
/* statistics segment */
uword *directory_vector_by_name;
vlib_stats_entry_t *directory_vector;
+ u32 dir_vector_first_free_elt;
u8 **nodes;
/* Update interval */