From 8e97d585deeb0bd2d2711e1d8043dd6442972faf Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Tue, 28 Mar 2017 09:30:52 -0700 Subject: [PATCH] nvmf_tgt: Rename g_last_rpc_core to g_last_core This used to be only for RPC, but now it is used in both the config file and RPC paths. Change-Id: I138a23f87e9042be60460bc5451470a2443ac3c3 Signed-off-by: Ben Walker --- app/nvmf_tgt/conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/nvmf_tgt/conf.c b/app/nvmf_tgt/conf.c index 36e11bfc3..01acc0875 100644 --- a/app/nvmf_tgt/conf.c +++ b/app/nvmf_tgt/conf.c @@ -86,7 +86,7 @@ struct spdk_nvmf_probe_ctx { #define SPDK_NVMF_CONFIG_MAX_IO_SIZE_MAX 131072 struct spdk_nvmf_tgt_conf g_spdk_nvmf_tgt_conf; -static int32_t g_last_rpc_lcore = -1; +static int32_t g_last_core = -1; static int spdk_get_numa_node_value(const char *path) @@ -481,13 +481,13 @@ spdk_nvmf_construct_subsystem(const char *name, } if (lcore < 0) { - lcore = ++g_last_rpc_lcore; + lcore = ++g_last_core; } /* Determine which core to assign to the subsystem */ mask = spdk_app_get_core_mask(); lcore = spdk_nvmf_allocate_lcore(mask, lcore); - g_last_rpc_lcore = lcore; + g_last_core = lcore; /* Determine the mode the subsysem will operate in */ if (mode_str == NULL) {