Commit 5613e6f3 authored by Ben Walker's avatar Ben Walker Committed by Daniel Verkamp
Browse files

nvmf_tgt: Remove use of rte_lcore



Change-Id: I272c2e56984abbb820758866297ee9e916af625a
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/363605


Reviewed-by: default avatarJohn Meneghini <johnm@netapp.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatar <ed.rodriguez@netapp.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 9139304a
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -33,9 +33,6 @@

#include "spdk/stdinc.h"

#include <rte_config.h>
#include <rte_lcore.h>

#include "nvmf_tgt.h"

#include "spdk/conf.h"
@@ -137,7 +134,7 @@ spdk_add_nvmf_discovery_subsystem(void)

	app_subsys = nvmf_tgt_create_subsystem(SPDK_NVMF_DISCOVERY_NQN, SPDK_NVMF_SUBTYPE_DISCOVERY,
					       NVMF_SUBSYSTEM_MODE_DIRECT,
					       rte_get_master_lcore());
					       g_spdk_nvmf_tgt_conf.acceptor_lcore);
	if (app_subsys == NULL) {
		SPDK_ERRLOG("Failed creating discovery nvmf library subsystem\n");
		return -1;
@@ -202,7 +199,7 @@ spdk_nvmf_parse_nvmf_tgt(void)

	acceptor_lcore = spdk_conf_section_get_intval(sp, "AcceptorCore");
	if (acceptor_lcore < 0) {
		acceptor_lcore = rte_lcore_id();
		acceptor_lcore = spdk_env_get_current_core();
	}
	g_spdk_nvmf_tgt_conf.acceptor_lcore = acceptor_lcore;

+1 −4
Original line number Diff line number Diff line
@@ -33,9 +33,6 @@

#include "spdk/stdinc.h"

#include <rte_config.h>
#include <rte_lcore.h>

#include "nvmf_tgt.h"

#include "spdk/bdev.h"
@@ -312,7 +309,7 @@ spdk_nvmf_tgt_start(struct spdk_app_opts *opts)
	opts->shutdown_cb = spdk_nvmf_shutdown_cb;
	spdk_app_init(opts);

	printf("Total cores available: %d\n", rte_lcore_count());
	printf("Total cores available: %d\n", spdk_env_get_core_count());
	/* Blocks until the application is exiting */
	rc = spdk_app_start(spdk_nvmf_startup, NULL, NULL);