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:
parent
7e3b9f25ba
commit
7b7f2aa685
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user