summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-05-20 10:07:51 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-05-20 10:07:51 +0200
commitddde35131f8a4dbd13068b8233d417518ae75f8f (patch)
tree9b447a2e247a3638848d3c5eba03e4f98632e398
parente5d00b3fdb6294cfa0e65082885575029a3b5b8b (diff)
[HICN-197] Added further information about the hashtable when executing the commanf hicn show internals
Change-Id: I29ddf4652b8fbf265d8053770c082e26f0a75a6f Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
-rw-r--r--hicn-plugin/src/cli.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hicn-plugin/src/cli.c b/hicn-plugin/src/cli.c
index 3905e0af1..54344bd7b 100644
--- a/hicn-plugin/src/cli.c
+++ b/hicn-plugin/src/cli.c
@@ -439,9 +439,14 @@ done:
{
vlib_cli_output (vm, "Plugin features: cs:%d\n", HICN_FEATURE_CS);
vlib_cli_output (vm,
- "Removed CS entries (and freed vlib buffers) %d, Removed PIT entries %d",
+ "Removed CS entries (and freed vlib buffers) %d, Removed PIT entries %d\n",
hicn_main.pitcs.pcs_cs_dealloc,
hicn_main.pitcs.pcs_pit_dealloc);
+ vlib_cli_output (vm,
+ "Bucke count %d, Overflow buckets count %d, used %d\n",
+ hicn_main.pitcs.pcs_table->ht_bucket_count,
+ hicn_main.pitcs.pcs_table->ht_overflow_bucket_count,
+ hicn_main.pitcs.pcs_table->ht_overflow_buckets_used);
}
return (ret == HICN_ERROR_NONE) ? 0 : clib_error_return (0, "%s\n",