* [dpdk-dev] rte_bitmap_init() mem_size argument
@ 2021-03-26 1:11 Andrew Boyer
0 siblings, 0 replies; only message in thread
From: Andrew Boyer @ 2021-03-26 1:11 UTC (permalink / raw)
To: dev
Why is mem_size defined as “Minimum expected size of bitmap”?
The code looks strange to me.
It will return an error if you pass in 2KB of memory to hold a 1KB bitmap, but not if you pass in 2KB of memory to hold a 4KB bitmap.
Shouldn’t it be the other way around?
-Andrew
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-26 1:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26 1:11 [dpdk-dev] rte_bitmap_init() mem_size argument Andrew Boyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).