nvmf_tgt: Remove use of rte_lcore

Change-Id: I272c2e56984abbb820758866297ee9e916af625a
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/363605
Reviewed-by: John Meneghini <johnm@netapp.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: <ed.rodriguez@netapp.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Ben Walker 2017-06-02 10:53:01 -07:00 committed by Daniel Verkamp
parent 9139304ac2
commit 5613e6f3d3
2 changed files with 3 additions and 9 deletions

View File

@ -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;

View File

@ -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);