fbarray: add API to find biggest used or free chunks
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 22 Feb 2019 16:14:01 +0000 (16:14 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 28 Mar 2019 22:28:52 +0000 (23:28 +0100)
commit7353ee7344b45426b921b91c56aa211ab0e58a89
treebbaf28129b07b996b11afb47518a0ff0cde01e66
parent5b61c62cfd76703d487a28d69a52fc3037d943ed
fbarray: add API to find biggest used or free chunks

Currently, while there is a way to find total amount of used/free
space in an fbarray, there is no way to find biggest contiguous
chunk. Add such API, as well as unit tests to test this API.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
app/test/test_fbarray.c
lib/librte_eal/common/eal_common_fbarray.c
lib/librte_eal/common/include/rte_fbarray.h
lib/librte_eal/rte_eal_version.map