test: Add spdk_mempool_put_bulk to test_env.c
Change-Id: Id5d22fb9c9e70c432b120676cbbf040b0c8e6c49 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/417363 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
9bac3426ae
commit
f443bd40e4
@ -213,6 +213,14 @@ spdk_mempool_put(struct spdk_mempool *_mp, void *ele)
|
||||
free(ele);
|
||||
}
|
||||
|
||||
void
|
||||
spdk_mempool_put_bulk(struct spdk_mempool *mp, void **ele_arr, size_t count)
|
||||
{
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
spdk_mempool_put(mp, ele_arr[i]);
|
||||
}
|
||||
}
|
||||
|
||||
size_t
|
||||
spdk_mempool_count(const struct spdk_mempool *_mp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user