nvmf: drop spdk_nvmf_check_pools() parameter
There is only a single global g_nvmf_tgt that can be passed to this function, so remove the parameter and use the global directly. Change-Id: Ia1a2a1e6cd3801101ddeb4de5526dd115fa7ef8f Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
58f9dcd220
commit
9b00a03a24
@ -231,7 +231,7 @@ main(int argc, char **argv)
|
||||
|
||||
spdk_app_fini();
|
||||
|
||||
if (spdk_nvmf_check_pools(&g_nvmf_tgt) != 0) {
|
||||
if (spdk_nvmf_check_pools() != 0) {
|
||||
rc = -1;
|
||||
}
|
||||
|
||||
|
@ -187,8 +187,9 @@ static int spdk_nvmf_check_pool(struct rte_mempool *pool, uint32_t count)
|
||||
}
|
||||
|
||||
int
|
||||
spdk_nvmf_check_pools(struct spdk_nvmf_globals *spdk_nvmf)
|
||||
spdk_nvmf_check_pools(void)
|
||||
{
|
||||
struct spdk_nvmf_globals *spdk_nvmf = &g_nvmf_tgt;
|
||||
int rc = 0;
|
||||
|
||||
rc += spdk_nvmf_check_pool(spdk_nvmf->nvme_request_pool, SPDK_NVMF_DESC_POOL_SIZE(spdk_nvmf));
|
||||
|
@ -112,7 +112,7 @@ nvmf_tgt_init(char *authfile, char *nodebase, int max_in_capsule_data, int max_s
|
||||
struct nvmf_request;
|
||||
|
||||
int
|
||||
spdk_nvmf_check_pools(struct spdk_nvmf_globals *spdk_nvmf);
|
||||
spdk_nvmf_check_pools(void);
|
||||
|
||||
int
|
||||
nvmf_initialize(void);
|
||||
|
Loading…
Reference in New Issue
Block a user