fbarray: reduce duplication in chunk finding
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 11 Jun 2018 20:55:36 +0000 (21:55 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 08:52:04 +0000 (10:52 +0200)
commit66656d0bf9e261993feff6bd908a13698c40e5df
treef7a8d89b7d6798f4707460b31c52d9f171fb060c
parent594adef0f427ec82dd6c7da834204fcf1980ce55
fbarray: reduce duplication in chunk finding

Mostly code move, aside from more quick checks done to avoid
doing computations in obviously hopeless cases.

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