app: move the core usage display after DPDK init

Change-Id: I29a46cbaef20e15173781680a62bc8087ca5672f
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/372426
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
GangCao 2017-08-02 21:55:44 -04:00 committed by Daniel Verkamp
parent 7e3b9f25ba
commit 7b7f2aa685
3 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,6 @@ main(int argc, char **argv)
opts.shutdown_cb = spdk_iscsi_shutdown;
opts.usr1_handler = spdk_sigusr1;
printf("Total cores available: %u\n", spdk_env_get_core_count());
printf("Using net framework %s\n", spdk_net_framework_get_name());
/* Blocks until the application is exiting */
app_rc = spdk_app_start(&opts, spdk_startup, NULL, NULL);

View File

@ -308,7 +308,6 @@ spdk_nvmf_tgt_start(struct spdk_app_opts *opts)
opts->shutdown_cb = spdk_nvmf_shutdown_cb;
printf("Total cores available: %d\n", spdk_env_get_core_count());
/* Blocks until the application is exiting */
rc = spdk_app_start(opts, spdk_nvmf_startup, NULL, NULL);

View File

@ -327,6 +327,8 @@ spdk_app_start(struct spdk_app_opts *opts, spdk_event_fn start_fn,
spdk_env_init(&env_opts);
printf("Total cores available: %d\n", spdk_env_get_core_count());
/*
* If mask not specified on command line or in configuration file,
* reactor_mask will be 0x1 which will enable core 0 to run one