test/vtophys: switch to spdk_*malloc().
spdk_dma_*malloc() is about to be deprecated. Change-Id: I200525244d1896e5dd3e589db133d597b699997f Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459553 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
7c6febd677
commit
67ef43544a
4
test/env/vtophys/vtophys.c
vendored
4
test/env/vtophys/vtophys.c
vendored
@ -81,7 +81,7 @@ vtophys_spdk_malloc_test(void)
|
||||
|
||||
/* Test vtophys on memory allocated through SPDK */
|
||||
for (i = 0; i < 31; i++) {
|
||||
buf = spdk_dma_zmalloc(size, buf_align, NULL);
|
||||
buf = spdk_zmalloc(size, buf_align, NULL, SPDK_ENV_LCORE_ID_ANY, SPDK_MALLOC_DMA);
|
||||
if (buf == NULL) {
|
||||
continue;
|
||||
}
|
||||
@ -146,7 +146,7 @@ vtophys_spdk_malloc_test(void)
|
||||
tmpsize = UINT64_MAX;
|
||||
}
|
||||
|
||||
spdk_dma_free(buf);
|
||||
spdk_free(buf);
|
||||
size = size << 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user