fbarray: add reverse finding of chunk
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 11 Jun 2018 20:55:39 +0000 (21:55 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 09:03:16 +0000 (11:03 +0200)
commite1ca5dc862261848abdc830e4678714c0367bd59
tree4f2ce672f1933e235bef12473a031b277f9c48d3
parentb8d07c5252e23f1d39fe5c6ca7ed364ff29e8281
fbarray: add reverse finding of chunk

Add a function to look for N used/free slots, but going backwards
instead of forwards. All semantics are kept similar to the existing
function, with the difference being that given the same input, the
same results will be returned in reverse order.

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