Hi Dave,
I took code from the below routine in test_bihash_template.c
test_bihash_vec64 (test_main_t * tm)
{
…
}
for (j = 0; j < 3; j++)
{
for (i = 1; i <= j * 1000 + 1; i++)
{
kv.key = i;
kv.value = 1;
BV (clib_bihash_add_del) (h, &kv, 1 /* is_add */ );
}
}
And changed 10 to 3.. that inserts 3003 elements.
And calling clib_format_bihash to print it, and I am seeing 2001 elements.
Could you please let me know how to build and run test_bihash_template.c .. so
that I can add a print routine there it self and try and can share the diffs
thanks
Vijay
From: "Dave Barach (dbarach)" <[email protected]>
Date: Wednesday, August 8, 2018 at 3:41 PM
To: "Vijay Katamreddy (vkatamre)" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: RE: format_bihash not printing all the elements
No known issues at that level. Since this sounds like a test code, can you
share it?
Thanks... Dave
From: [email protected] <[email protected]> On Behalf Of Vijayabhaskar
Katamreddy via Lists.Fd.Io
Sent: Wednesday, August 8, 2018 3:14 PM
To: [email protected]
Cc: [email protected]
Subject: [vpp-dev] format_bihash not printing all the elements
Hi,
I am add/search and experimenting with bihash, and when I use format_bihash to
print the keys/values.. active_elements count is printing incorrectly as well
not printing all the values.
I am inserting 3003 elements in 16_8 bihash, but only 2001 elements are
printed, any known issues?
I know that all the 3003 elements are in the list, as I am doing search, and
able to find the same in the same hash table
Thanks
Vijay
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10075): https://lists.fd.io/g/vpp-dev/message/10075
Mute This Topic: https://lists.fd.io/mt/24232911/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-