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 <benjamin.walker@intel.com>
This commit is contained in:
parent
7f7c03a935
commit
8e97d585de
@ -86,7 +86,7 @@ struct spdk_nvmf_probe_ctx {
|
|||||||
#define SPDK_NVMF_CONFIG_MAX_IO_SIZE_MAX 131072
|
#define SPDK_NVMF_CONFIG_MAX_IO_SIZE_MAX 131072
|
||||||
|
|
||||||
struct spdk_nvmf_tgt_conf g_spdk_nvmf_tgt_conf;
|
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
|
static int
|
||||||
spdk_get_numa_node_value(const char *path)
|
spdk_get_numa_node_value(const char *path)
|
||||||
@ -481,13 +481,13 @@ spdk_nvmf_construct_subsystem(const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (lcore < 0) {
|
if (lcore < 0) {
|
||||||
lcore = ++g_last_rpc_lcore;
|
lcore = ++g_last_core;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Determine which core to assign to the subsystem */
|
/* Determine which core to assign to the subsystem */
|
||||||
mask = spdk_app_get_core_mask();
|
mask = spdk_app_get_core_mask();
|
||||||
lcore = spdk_nvmf_allocate_lcore(mask, lcore);
|
lcore = spdk_nvmf_allocate_lcore(mask, lcore);
|
||||||
g_last_rpc_lcore = lcore;
|
g_last_core = lcore;
|
||||||
|
|
||||||
/* Determine the mode the subsysem will operate in */
|
/* Determine the mode the subsysem will operate in */
|
||||||
if (mode_str == NULL) {
|
if (mode_str == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user