Commit 8e97d585 authored by Ben Walker's avatar Ben Walker
Browse files

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: default avatarBen Walker <benjamin.walker@intel.com>
parent 7f7c03a9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {