[dpdk-dev] rte_bitmap_init() mem_size argument

Andrew Boyer aboyer at pensando.io
Fri Mar 26 02:11:41 CET 2021


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


More information about the dev mailing list